applySchema
Apply schema configuration. Accepts both SchemaPath and SchemaPathTree for flexibility.
Note: We cast fieldPath to suppress TypeScript's union type errors. This is safe because:
- We only use signal forms (not AbstractControl), so SchemaPathTree is always the supported branch
- The Angular apply functions accept SchemaPath with any value type
- The actual schema application happens at runtime via the schema function
Presentation
function applySchema (
config: SchemaApplicationConfig ,
fieldPath: SchemaPath<unknown> | SchemaPath<unknown, 1, Root>,
): void;Returns
voidParameters
| Name | Type | Description |
|---|---|---|
| config | | |
| fieldPath | SchemaPath<unknown> | SchemaPath<unknown, 1, Root> |