[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/forms/signals/SchemaPathTree [Back]  [Original]

SchemaPathTree Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/forms/signals

SchemaPathTree

Type Alias
stablesince v22.0

Nested schema path.

The schema functionSchemas and schema composability

On this page

    arrow_upward_alt Back to the top

    API

        
          type SchemaPathTree<TModel, TPathKind extends PathKind = PathKind.Root> = ([TModel] extends [AbstractControl]    ? CompatSchemaPath<TModel, TPathKind>    : SchemaPath<TModel, SchemaPathRules.Supported, TPathKind>) &    // Subpaths    ([TModel] extends [AbstractControl]      ? unknown      : // Array paths have no subpaths        [TModel] extends [ReadonlyArray<any>]        ? unknown        : // Object subfields          TModel extends Record<string, any>          ? {[K in keyof TModel]: MaybeSchemaPathTree<TModel[K], PathKind.Child>}          : // Primitive or other type - no subpaths            unknown)
        
        

    Description

    Nested schema path.

    It mirrors the structure of a given data structure, and allows applying rules to the appropriate fields.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page