Type alias PipeGuard<Guard>

PipeGuard<Guard>: ((value: GuardType<Guard>) => value is typeof value)

Type Parameters

Type declaration

    • (value: GuardType<Guard>): value is typeof value
    • Returns a type that a Guard that will extend the output of the given Guard.

      Example

      GuardType<typeof isTypeString> // string
      GuardType<typeof Array.isArray> // unknown[]

      Parameters

      Returns value is typeof value

Generated using TypeDoc