KC's Workspace
Github
Preparing search index...
@kcws/actkits
z
core
$ZodCodecDef
Interface $ZodCodecDef<A, B>
interface
$ZodCodecDef
<
A
extends
z
.
core
.
SomeType
=
z
.
core
.
$ZodType
,
B
extends
z
.
core
.
SomeType
=
z
.
core
.
$ZodType
,
>
{
checks
?:
z
.
core
.
$ZodCheck
<
never
>
[]
;
error
?:
$ZodErrorMap
<
never
>
;
in
:
A
;
out
:
B
;
reverseTransform
:
(
value
:
z
.
core
.
input
<
B
>
,
payload
:
ParsePayload
<
z
.
core
.
input
<
B
>
>
,
)
=>
MaybeAsync
<
z
.
core
.
output
<
A
>
>
;
transform
:
(
value
:
z
.
core
.
output
<
A
>
,
payload
:
ParsePayload
<
z
.
core
.
output
<
A
>
>
,
)
=>
MaybeAsync
<
z
.
core
.
input
<
B
>
>
;
type
:
"pipe"
;
}
Type Parameters
A
extends
z
.
core
.
SomeType
=
z
.
core
.
$ZodType
B
extends
z
.
core
.
SomeType
=
z
.
core
.
$ZodType
Hierarchy (
View Summary
)
$ZodPipeDef
<
A
,
B
>
$ZodCodecDef
Index
Properties
checks?
error?
in
out
reverse
Transform
transform
type
Properties
Optional
checks
checks
?:
z
.
core
.
$ZodCheck
<
never
>
[]
Optional
error
error
?:
$ZodErrorMap
<
never
>
in
in
:
A
out
out
:
B
reverse
Transform
reverseTransform
:
(
value
:
z
.
core
.
input
<
B
>
,
payload
:
ParsePayload
<
z
.
core
.
input
<
B
>
>
,
)
=>
MaybeAsync
<
z
.
core
.
output
<
A
>
>
Only defined inside $ZodCodec instances.
transform
transform
:
(
value
:
z
.
core
.
output
<
A
>
,
payload
:
ParsePayload
<
z
.
core
.
output
<
A
>
>
,
)
=>
MaybeAsync
<
z
.
core
.
input
<
B
>
>
Only defined inside $ZodCodec instances.
type
type
:
"pipe"
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
On This Page
Properties
checks
error
in
out
reverse
Transform
transform
type
Github
KC's Workspace
Loading...
Only defined inside $ZodCodec instances.