-
Notifications
You must be signed in to change notification settings - Fork 10
Type
Michael Poteat edited this page Feb 27, 2023
·
3 revisions
hkt-toolbelt / Type
Ƭ _$cast<T
, U
>: T
extends U
? T
: U
Name |
---|
T |
U |
Ƭ _$display<T
>: T
extends (...args
: never
[]) => unknown
? T
: T
extends (...args
: never
[]) => unknown
? T
: { [key in keyof T]: T[key] }
Name |
---|
T |
Ƭ _$infer<X
, Narrow
>: Narrow
extends unknown
[] ? { [key in keyof X]: _$infer<X[key]> } : Narrow
Name | Type |
---|---|
X |
X |
Narrow |
_$cast <X , _$inferred > | [..._$cast<X, _$inferredTuple>] |
Ƭ _$isNever<X
>: _$equals
<X
, never
>
Name |
---|
X |
Ƭ _$valueOf<T
>: T
extends unknown
[] ? T
[number
] : T
[keyof T
]
Name |
---|
T |