Type alias IsNotSymbol<T, $O>

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

🎭 predicate

Validate if T is not symbol.

type R = IsNotSymbol<symbol> // false

type R = IsNotSymbol<never> // true
type R = IsNotSymbol<unknown> // true
type R = IsNotSymbol<string | boolean> // true

🔢 customize

Filter to ensure T is not symbol, otherwise returns never.

Type Parameters

Example

type R = IsNotSymbol<symbol, { selection: 'filter' }> // never

type R = IsNotSymbol<never, { selection: 'filter' }> // never
type R = IsNotSymbol<unknown, { selection: 'filter' }> // unknown
type R = IsNotSymbol<symbol | string, { selection: 'filter' }> // string

🔢 customize

Disable distribution of union types.

Example

type R = IsNotSymbol<symbol | 1> // boolean
type R = IsNotSymbol<symbol | 1, { distributive: false }> // true

🔢 customize

Use unique branch identifiers to allow precise processing of the result.

Example

type R = IsNotSymbol<string, $SelectionBranch> // $Then
type R = IsNotSymbol<symbol, $SelectionBranch> // $Else

Generated using TypeDoc