• 개요
@angular/forms/signals

MaybeSchemaPathTree

타입 별칭
안정화v22.0부터

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

API

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

설명

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>.

상세 내용으로 이동