typelab / assertions / IsBigInt
type IsBigInt<T> = _IsTrue<IfBigInt<T, true, false>>;Checks if a given type T is a bigint.
| Type Parameter | Description |
|---|---|
|
|
The type to be checked. |
true if T is a bigint, false otherwise.
type Valid = IsBigInt<bigint>; // true
type Invalid = IsBigInt<number>; // false