@adobe/data - v0.10.30
Preparing search index...
schema
withValidation
Function withValidation
withValidation
<
T
extends
Schema
.
Schema
>
(
schema
:
T
,
)
:
<
F
extends
(
arg
:
ToType
<
T
>
)
=>
any
>
(
fn
:
F
)
=>
F
Creates a function which can wrap another function and validate the input against a JSON Schema.
Type Parameters
T
extends
Schema
.
Schema
Parameters
schema
:
T
Returns
<
F
extends
(
arg
:
ToType
<
T
>
)
=>
any
>
(
fn
:
F
)
=>
F
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@adobe/data - v0.10.30
Loading...
Creates a function which can wrap another function and validate the input against a JSON Schema.