( path: SchemaPath<unknown>, predicate: (value: unknown) => boolean, schema: SchemaOrSchemaFn<unknown>, )
| 403 | ): void; |
| 404 | |
| 405 | export function applyWhenValue( |
| 406 | path: SchemaPath<unknown>, |
| 407 | predicate: (value: unknown) => boolean, |
| 408 | schema: SchemaOrSchemaFn<unknown>, |
| 409 | ) { |
| 410 | applyWhen(path, ({value}) => predicate(value()), schema); |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * Submits a given `FieldTree` using the given action function and applies any submission errors |
no test coverage detected