Documentation
Preparing search index...
@rivetkit/engine-api-full
core
serialization
union
Function union
union
<
D
extends
string
|
Discriminant
<
any
,
any
>
,
U
extends
UnionSubtypes
<
any
>
>
(
discriminant
:
D
,
union
:
U
,
)
:
ObjectLikeSchema
<
inferRawUnion
<
D
,
U
>
,
inferParsedUnion
<
D
,
U
>
>
Type Parameters
D
extends
string
|
Discriminant
<
any
,
any
>
U
extends
UnionSubtypes
<
any
>
Parameters
discriminant
:
D
union
:
U
Returns
ObjectLikeSchema
<
inferRawUnion
<
D
,
U
>
,
inferParsedUnion
<
D
,
U
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation
Loading...