( path: SchemaPath<TValue>, schema: NoInfer<SchemaOrSchemaFn<TValue>>, )
| 301 | * @publicApi 22.0 |
| 302 | */ |
| 303 | export function apply<TValue>( |
| 304 | path: SchemaPath<TValue>, |
| 305 | schema: NoInfer<SchemaOrSchemaFn<TValue>>, |
| 306 | ): void { |
| 307 | assertPathIsCurrent(path); |
| 308 | |
| 309 | const pathNode = FieldPathNode.unwrapFieldPath(path); |
| 310 | pathNode.mergeIn(SchemaImpl.create(schema)); |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * Conditionally applies a predefined schema to a given `FieldPath`. |
no test coverage detected
searching dependent graphs…