type R = IsNotBigint<bigint> // false
type R = IsNotBigint<1n> // false
type R = IsNotBigint<never> // true
type R = IsNotBigint<unknown> // true
type R = IsNotBigint<string | boolean> // true
🔢 customize
Filter to ensure T
is not bigint
nor bigint
literals, otherwise returns never
.
type R = IsNotBigint<bigint, { selection: 'filter' }> // never
type R = IsNotBigint<1n, { selection: 'filter' }> // never
type R = IsNotBigint<never, { selection: 'filter' }> // never
type R = IsNotBigint<unknown, { selection: 'filter' }> // unknown
type R = IsNotBigint<string | boolean, { selection: 'filter' }> // string | boolean
🔢 customize:
Validate if T
is not exactly bigint
.
type R = IsNotBigint<bigint, { exact: true }> // false
type R = IsNotBigint<1n, { exact: true }> // true
🔢 customize
Disable distribution of union types.
🎭 predicate
Validate if
T
is notbigint
norbigint
literals.