🧰 type util
Default Options for predicate selection logic.
predicate means the logic returns true or false depending on the condition.
predicate
true
false
type YourType< T, Options extends YourType.$Options = YourType.$Default> = ...namespace YourType { export type $Options = $SelectionOptions export type $Default = $SelectionPredicate}type R = YourType<ThenType> // truetype X = YourType<ElseType> // false Copy
type YourType< T, Options extends YourType.$Options = YourType.$Default> = ...namespace YourType { export type $Options = $SelectionOptions export type $Default = $SelectionPredicate}type R = YourType<ThenType> // truetype X = YourType<ElseType> // false
🧰 type util
Default Options for predicate selection logic.
predicate
means the logic returnstrue
orfalse
depending on the condition.