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