( path: SchemaPath<TValue>, schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, PathKind.Item>>, )
| 295 | schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, PathKind.Child>>, |
| 296 | ): void; |
| 297 | export function applyEach<TValue extends Object>( |
| 298 | path: SchemaPath<TValue>, |
| 299 | schema: NoInfer<SchemaOrSchemaFn<ItemType<TValue>, PathKind.Item>>, |
| 300 | ): void { |
| 301 | assertPathIsCurrent(path); |
| 302 | |
| 303 | const elementPath = FieldPathNode.unwrapFieldPath(path).getChild(DYNAMIC).fieldPathProxy; |
| 304 | apply(elementPath, schema as Schema<TValue>); |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Applies a predefined schema to a given `FieldPath`. |