Type alias TypeGuard<Value, Result>

TypeGuard<Value, Result>: ((value: Value) => value is Result)

Type Parameters

  • Value

  • Result extends Value

Type declaration

    • (value: Value): value is Result
    • Given a parameter and a predicate, return a new generic Type Guard that implements those

      Parameters

      • value: Value

      Returns value is Result

Generated using TypeDoc