API
function applyEach<TValue extends ReadonlyArray<any>>( path: SchemaPath<TValue>, schema: NoInfer<SchemaOrSchemaFn<TValue[number], Item>>,): void;function applyEach<TValue extends Object>( path: SchemaPath<TValue>, schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, Child>>,): void;function applyEach<TValue>(path: SchemaPath<TValue>, schema: NoInfer<SchemaOrSchemaFn<TValue[number], Item>>): void;Applies a schema to each item of an array.
@parampath
SchemaPath<TValue>The target path for an array field whose items the schema will be applied to.
@paramschema
NoInfer<SchemaOrSchemaFn<TValue[number], Item>>A schema for an element of the array, or function that binds logic to an element of the array.
@returns
voidfunction applyEach<TValue>(path: SchemaPath<TValue>, schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, Child>>): void;@returns
voidJump to details