Function matchTypes

  • Given one or more type names as arguments, returns a Type Guard that checks if the type of the given value matches at least one of the type names.

    Type Parameters

    Parameters

    • Rest ...types: Types

    Returns MatchTypeInFn<Types>

Generated using TypeDoc