typelab / assertions / IsNumberInteger
type IsNumberInteger<T> = _IsTrue<IfNumberInteger<T, true, false>>;Checks if a given type T is a integer number literal type.
| Type Parameter | Description |
|---|---|
|
|
The type to be checked. |
true if T is a integer number literal type, false otherwise.
type Valid = IsNumberInteger<11>; // true
type Invalid = IsNumberInteger<11.1>; // false