PokéRogue
    Preparing search index...
    • Matcher that checks if a Pokemon's typing is as expected.

      Parameters

      • this: MatcherState
      • received: unknown

        The object to check. Should be a Pokemon

      • expectedTypes: [PokemonType, ...PokemonType[]]

        An array of one or more PokemonTypes to compare against.

      • mode: toHaveTypesOptions = {}

        The mode to perform the matching in. Possible values (in ascending order of strength) are:

        • "ordered": Enforce that the Pokemon's types are identical and in the same order
        • "unordered": Enforce that the Pokemon's types are identical without checking order
        • "superset": Enforce that the Pokemon's types are a superset of the expected types (all must be present, but extras can be there)

        Default unordered

      Returns SyncExpectationResult

      The result of the matching