Genkit JS API reference
Preparing search index...
genkit
/
z
preprocess
Variable preprocess
Const
preprocess
:
<
I
extends
z
.
ZodTypeAny
>
(
preprocess
:
(
arg
:
unknown
,
ctx
:
z
.
RefinementCtx
)
=>
unknown
,
schema
:
I
,
params
?:
z
.
RawCreateParams
,
)
=>
z
.
ZodEffects
<
I
,
I
[
"_output"
]
,
unknown
>
Type Declaration
<
I
extends
z
.
ZodTypeAny
>
(
preprocess
:
(
arg
:
unknown
,
ctx
:
z
.
RefinementCtx
)
=>
unknown
,
schema
:
I
,
params
?:
z
.
RawCreateParams
,
)
:
z
.
ZodEffects
<
I
,
I
[
"_output"
]
,
unknown
>
Type Parameters
I
extends
z
.
ZodTypeAny
Parameters
preprocess
:
(
arg
:
unknown
,
ctx
:
z
.
RefinementCtx
)
=>
unknown
schema
:
I
Optional
params
:
z
.
RawCreateParams
Returns
z
.
ZodEffects
<
I
,
I
[
"_output"
]
,
unknown
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...