@hbbio/nanoagent
Preparing search index...
applySchema
Function applySchema
applySchema
<
T
extends
Record
<
string
,
unknown
>
>
(
schema
:
TypedSchema
<
T
>
,
args
:
Partial
<
T
>
,
)
:
T
applySchema recursively applies the schema to the provided arguments:
Enforce required properties
Apply defaults
Coerce types
Validate types and enum membership
Type Parameters
T
extends
Record
<
string
,
unknown
>
Parameters
schema
:
TypedSchema
<
T
>
args
:
Partial
<
T
>
Returns
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@hbbio/nanoagent
Loading...
applySchema recursively applies the schema to the provided arguments: