mini-effect
Preparing search index...
schema
unionAsync
Function unionAsync
unionAsync
<
const
TOptions$1
extends
UnionOptionsAsync
>
(
options
:
TOptions$1
,
)
:
UnionSchemaAsync
<
TOptions$1
,
undefined
>
Creates an union schema.
Type Parameters
const
TOptions$1
extends
UnionOptionsAsync
Parameters
options
:
TOptions$1
The union options.
Returns
UnionSchemaAsync
<
TOptions$1
,
undefined
>
An union schema.
unionAsync
<
const
TOptions$1
extends
UnionOptionsAsync
,
const
TMessage
extends
ErrorMessage
<
UnionIssue
<
InferIssue
<
TOptions$1
[
number
]
>
>
>
|
undefined
,
>
(
options
:
TOptions$1
,
message
:
TMessage
,
)
:
UnionSchemaAsync
<
TOptions$1
,
TMessage
>
Creates an union schema.
Type Parameters
const
TOptions$1
extends
UnionOptionsAsync
const
TMessage
extends
ErrorMessage
<
UnionIssue
<
InferIssue
<
TOptions$1
[
number
]
>
>
>
|
undefined
Parameters
options
:
TOptions$1
The union options.
message
:
TMessage
The error message.
Returns
UnionSchemaAsync
<
TOptions$1
,
TMessage
>
An union schema.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
mini-effect
Loading...
Creates an union schema.