ThemeParks.wiki Parks API - v2.0.0
    Preparing search index...

    Function registerDestination

    • Manually register an external destination class.

      Use this when the destination lives in a separate repo and can't be auto-discovered from the parks/ directory. The class should extend Destination and use property-level

      Parameters

      Returns void

      decorators for configuration — the class-level config wrapper is applied automatically here, matching the behavior of @destinationController.

      import {registerDestination} from '@themeparks/parksapi';
      import {DisneyWorldResort} from './disney/wdw.js';

      registerDestination({
      id: 'disneyworldresort',
      name: 'Walt Disney World Resort',
      DestinationClass: DisneyWorldResort,
      category: 'Disney',
      });