Preparing search index...
The search index is not available
@team-plain/typescript-sdk
@team-plain/typescript-sdk
<internal>
ZodCatchDef
Interface ZodCatchDef<T>
interface
ZodCatchDef
<
T
>
{
catchValue
:
(
(
ctx
)
=>
T
[
"_input"
]
)
;
description
?:
string
;
errorMap
?:
ZodErrorMap
;
innerType
:
T
;
typeName
:
ZodCatch
;
}
Type Parameters
T
extends
ZodTypeAny
=
ZodTypeAny
Hierarchy (
view full
)
ZodTypeDef
ZodCatchDef
Index
Properties
catch
Value
description?
error
Map?
inner
Type
type
Name
Properties
catch
Value
catch
Value
:
(
(
ctx
)
=>
T
[
"_input"
]
)
Type declaration
(
ctx
)
:
T
[
"_input"
]
Parameters
ctx
:
{
error
:
ZodError
<
any
>
;
input
:
unknown
;
}
error
:
ZodError
<
any
>
input
:
unknown
Returns
T
[
"_input"
]
Optional
description
description
?:
string
Optional
error
Map
error
Map
?:
ZodErrorMap
inner
Type
inner
Type
:
T
type
Name
type
Name
:
ZodCatch
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
catch
Value
description
error
Map
inner
Type
type
Name
@team-plain/typescript-sdk
Loading...
Generated using
TypeDoc