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.
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.
type R = IsNotSymbol<string, $SelectionBranch> // $Then
type R = IsNotSymbol<symbol, $SelectionBranch> // $Else
Generated using TypeDoc
🎭 predicate
Validate if
T
is notsymbol
.🔢 customize
Filter to ensure
T
is notsymbol
, otherwise returnsnever
.