Type alias IsNotBigintLiteral<T, $O>

IsNotBigintLiteral<T, $O>: $SpecialType<T, $MergeOptions<$O, {
    $else: IsNotBigintLiteral.$<T, $O>;
    $then: $ResolveBranch<T, $O, [$Then]>;
}>>

🎭 predicate

Validate if T is not bigint literals.

Type Parameters

Example

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.

Example

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.

Example

type R = IsNotBigintLiteral<1n, $SelectionBranch> // $Else
type R = IsNotBigintLiteral<bigint, $SelectionBranch> // $Then

Generated using TypeDoc