isguard-ts
    Preparing search index...

    Type Alias OptionalTypeGuard<T>

    OptionalTypeGuard: UnionTypeGuard<[undefined, T]> & { unbox(): TypeGuard<T> }

    A TypeGuard for T | undefined.

    Returned by isOptional and TypeGuard.optional.

    Type Parameters

    • T

      The base type that may be undefined

    Type Declaration