Type Alias NotUnknownOr<T, Else>

NotUnknownOr<T, Else>: IsUnknown<T, {
    $else: T;
    $then: Else;
}>

🌪️ filter

Returns T if T is not unknown, otherwise $Unknown.

Type Parameters

type R = NotUnknownOr<number> // number
type R = NotUnknownOr<unknown> // $Unknown

// customize
type R = NotUnknownOr<unknown, number> // number

🔢 customize

Replace unknown branch with Replace.

type R = NotUnknownOr<unknown, number> // number