W3cubDocs

/Angular

applyEach

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.

@parampathSchemaPath<TValue>

The target path for an array field whose items the schema will be applied to.

@paramschemaNoInfer<SchemaOrSchemaFn<TValue[number], Item>>

A schema for an element of the array, or function that binds logic to an element of the array.

@returnsvoid
function applyEach<TValue>(path: SchemaPath<TValue>, schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, Child>>): void;
@parampathSchemaPath<TValue>
@paramschemaNoInfer<SchemaOrSchemaFn<ItemType<TValue>, Child>>
@returnsvoid

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/signals/applyEach