Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 601 Bytes

File metadata and controls

43 lines (31 loc) · 601 Bytes

typelab / assertions / IsNumberInteger

type IsNumberInteger<T> = _IsTrue<IfNumberInteger<T, true, false>>;

Checks if a given type T is a integer number literal type.

Type Parameters

Type Parameter Description

T

The type to be checked.

Returns

true if T is a integer number literal type, false otherwise.

Example

type Valid = IsNumberInteger<11>; // true
type Invalid = IsNumberInteger<11.1>; // false