themeparks - v7.0.0
    Preparing search index...

    Class DestinationsApi

    Destinations directory helpers.

    NOTE: find does a loose, case-insensitive match on slug and name. Both sides are normalized (lowercased, non-alphanumerics stripped) and then tested via substring containment. The destinations list grows over time and entries can be renamed; if you need a stable reference, resolve the id once using this helper and then pin that id in your code.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Find the first destination whose slug or name matches query.

      Matching is case-insensitive and ignores non-alphanumeric characters on both sides. An exact normalized match on either slug or name wins over a substring match — so a query of "walt-disney-world" returns the destination with that exact slug even when another entry's slug/name contains it as a substring (e.g. "walt-disney-world-extra"). If no exact match is found, the first substring containment match is returned. Returns undefined when nothing matches.

      Parameters

      • query: string

      Returns Promise<{} | undefined>