typelab / assertions / IsFalse
type IsFalse<T> = _IsTrue<IfFalse<T, true, false>>;Checks if a given type T is the literal false.
| Type Parameter | Description |
|---|---|
|
|
The type to be checked. |
true if T is the literal false, false otherwise.
type Valid = IsFalse<false>; // true
type Invalid = IsFalse<boolean>; // false