Type alias IsFalsy<T>

IsFalsy<T>: IfExtends<T, Falsy, true, false>

Checks if a given type T is Falsy.

Type Parameters

  • T

Returns

true if T is a subtype of Falsy, otherwise false.

Example

type Falsy = IsFalsy<''>; // TestFalsy is tru`
type Truthy = IsFalsy<10>; // TestTruthy is false