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

      Parameters

      • this: Readonly<MatcherState>
      • received: unknown

        The object to check. Should be a Pokemon

      • expectedTypes: PokemonType | readonly [PokemonType, PokemonType]

        A single PokemonType or array of multiple types to compare against

      • mode: ToHaveTypesOptions = {}

        The mode in which to perform the matching. Possible values (in descending order of strictness) 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)
        • "oneOf": Enforce that the Pokemon's types include at least one of the expected types (the existence of additional types does not matter)

        Default: "unordered"

      Returns SyncExpectationResult

      The result of the matching