Type alias IsExactlyNumber<T>

IsExactlyNumber<T>: Equals<T, number>

Type Parameters

  • T

Returns

true if T is exactly of type number, otherwise false.

Example

 IsExactlyNumber<any | number>; // false
IsExactlyNumber<unknown | number> // false
IsExactlyNumber<number> // true
IsExactlyNumber<87> // false