trembita
Preparing search index...
validateStandardSchema
Function validateStandardSchema
validateStandardSchema
<
Output
>
(
value
:
unknown
,
schema
:
StandardSchemaV1
<
Output
>
,
)
:
Promise
<
Result
<
Output
,
Readonly
<
{
issues
:
readonly
Readonly
<
{
message
:
string
;
path
?:
readonly
PropertyKey
[]
}
,
>
[]
;
kind
:
"validation_failed"
;
}
,
>
,
>
,
>
Run a Standard Schema v1
validate
and return a
Result
(no throws).
Type Parameters
Output
Parameters
value
:
unknown
schema
:
StandardSchemaV1
<
Output
>
Returns
Promise
<
Result
<
Output
,
Readonly
<
{
issues
:
readonly
Readonly
<
{
message
:
string
;
path
?:
readonly
PropertyKey
[]
}
,
>
[]
;
kind
:
"validation_failed"
;
}
,
>
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
trembita
Loading...
Run a Standard Schema v1
validateand return a Result (no throws).