Preparing search index...
The search index is not available
Documentation
Documentation
types/utils
OneOf
Type Alias OneOf<union, fallback, keys>
OneOf
:
union
extends
infer
item
?
Prettify
<
item
&
{
[
key
in
Exclude
<
keys
,
keyof
item
>
]
?:
fallback
extends
object
?
key
extends
keyof
fallback
?
fallback
[
key
]
:
undefined
:
undefined
}
,
>
:
never
Type Parameters
union
extends
object
fallback
extends
object
|
undefined
=
undefined
keys
extends
KeyofUnion
<
union
>
=
KeyofUnion
<
union
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
Loading...