Genkit JS API reference
Preparing search index...
@genkit-ai/next
z
union
Variable union
Const
union
:
<
Options
extends
Readonly
<
[
z
.
ZodTypeAny
,
z
.
ZodTypeAny
,
...
z
.
ZodTypeAny
[]
]
>
,
>
(
types
:
Options
,
params
?:
z
.
RawCreateParams
,
)
=>
z
.
ZodUnion
<
Options
>
Type Declaration
<
Options
extends
Readonly
<
[
z
.
ZodTypeAny
,
z
.
ZodTypeAny
,
...
z
.
ZodTypeAny
[]
]
>
>
(
types
:
Options
,
params
?:
z
.
RawCreateParams
,
)
:
z
.
ZodUnion
<
Options
>
Type Parameters
Options
extends
Readonly
<
[
z
.
ZodTypeAny
,
z
.
ZodTypeAny
,
...
z
.
ZodTypeAny
[]
]
>
Parameters
types
:
Options
Optional
params
:
z
.
RawCreateParams
Returns
z
.
ZodUnion
<
Options
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...