apply
function
stablesince v22.0
Applies a predefined schema to a given FieldPath.
API
function apply<TValue>(
path: SchemaPath<TValue>,
schema: NoInfer<SchemaOrSchemaFn<TValue>>,
): void;@returns
voidJump to details
Applies a predefined schema to a given FieldPath.
function apply<TValue>(
path: SchemaPath<TValue>,
schema: NoInfer<SchemaOrSchemaFn<TValue>>,
): void;void