KC's Workspace
Github
Preparing search index...
@kcws/actkits
z
safeDecode
Variable safeDecode
Const
safeDecode
:
<
T
extends
z
.
core
.
$ZodType
>
(
schema
:
T
,
value
:
z
.
core
.
input
<
T
>
,
_ctx
?:
ParseContext
<
$ZodIssue
>
,
)
=>
ZodSafeParseResult
<
z
.
core
.
output
<
T
>
>
Type Declaration
<
T
extends
z
.
core
.
$ZodType
>
(
schema
:
T
,
value
:
z
.
core
.
input
<
T
>
,
_ctx
?:
ParseContext
<
$ZodIssue
>
,
)
:
ZodSafeParseResult
<
z
.
core
.
output
<
T
>
>
Type Parameters
T
extends
z
.
core
.
$ZodType
Parameters
schema
:
T
value
:
z
.
core
.
input
<
T
>
Optional
_ctx
:
ParseContext
<
$ZodIssue
>
Returns
ZodSafeParseResult
<
z
.
core
.
output
<
T
>
>
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
Github
KC's Workspace
Loading...