type R = IsNotBigintLiteral<bigint> // true
type R = IsNotBigintLiteral<1n> // false
type R = IsNotBigintLiteral<never> // true
type R = IsNotBigintLiteral<unknown> // true
type R = IsNotBigintLiteral<string | boolean> // true
type R = IsNotBigintLiteral<string | 1n> // boolean
🔢 customize
Filter to ensure T
is not bigint literals, otherwise returns never
.
type R = IsNotBigintLiteral<bigint, { selection: 'filter' }> // bigint
type R = IsNotBigintLiteral<1n, { selection: 'filter' }> // never
type R = IsNotBigintLiteral<never, { selection: 'filter' }> // never
type R = IsNotBigintLiteral<unknown, { selection: 'filter' }> // unknown
type R = IsNotBigintLiteral<1n | string, { selection: 'filter' }> // string
🔢 customize:
Disable distribution of union types.
type R = IsNotBigintLiteral<1n | string> // boolean
type R = IsNotBigintLiteral<1n | string, { distributive: false }> // true
🔢 customize
Use unique branch identifiers to allow precise processing of the result.
🎭 predicate
Validate if
T
is not bigint literals.