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

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

MaybeSchemaPathTree

Type Alias
stablesince v22.0

Helper type for defining FieldPath. Given a type TValue that may include undefined, it extracts the undefined outside the FieldPath type.

Schemas and schema composability

On this page

    arrow_upward_alt Back to the top

    API

        
          type MaybeSchemaPathTree<TModel, TPathKind extends PathKind = PathKind.Root> = (TModel & undefined) | SchemaPathTree<Exclude<TModel, undefined>, TPathKind>
        
        

    Description

    Helper type for defining FieldPath. Given a type TValue that may include undefined, it extracts the undefined outside the FieldPath type.

    For example MaybeFieldPath<{a: number} | undefined, PathKind.Child> would be equivalent to undefined | FieldTree<{a: number}, PathKind.child>.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page