Type Alias IsNumeric<T, $O>

IsNumeric<T, $O>: $Select<T, number | bigint, $O>

Is T numeric.

type R = IsNumeric<1> // true
type R = IsNumeric<1.1> // true

type R = IsNumeric<string> // false
type R = IsNumeric<unknown> // false

Type Parameters