( path: SchemaPath<TValue>, schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, PathKind.Item>>, )
| 280 | schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, PathKind.Child>>, |
| 281 | ): void; |
| 282 | export function applyEach<TValue extends Object>( |
| 283 | path: SchemaPath<TValue>, |
| 284 | schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, PathKind.Item>>, |
| 285 | ): void { |
| 286 | assertPathIsCurrent(path); |
| 287 | |
| 288 | const elementPath = FieldPathNode.unwrapFieldPath(path).getChild(DYNAMIC).fieldPathProxy; |
| 289 | apply(elementPath, schema as Schema<TValue>); |
| 290 | } |
| 291 | |
| 292 | /** |
| 293 | * Applies a predefined schema to a given `FieldPath`. |