• 개요
@angular/forms/signals

IgnoreUnknownProperties

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

Utility type that recursively ignores unknown string index properties on the given object. We use this on the TSchema type in validateStandardSchema in order to accommodate Zod's looseObject which includes {[key: string]: unknown} as part of the type.

API

    
      type IgnoreUnknownProperties<T> = T extends Record<PropertyKey, unknown>    ? {        [K in keyof T as RemoveStringIndexUnknownKey<K, T[K]>]: IgnoreUnknownProperties<T[K]>;      }    : T
    
    
상세 내용으로 이동