more_horiz
@angular/forms/signalscode
RemoveStringIndexUnknownKey
Type Alias
stablesince v22.0
Utility type that removes a string index key when its value is unknown,
i.e. {[key: string]: unknown}. It allows specific string keys to pass through, even if their
value is unknown, e.g. {key: unknown}.
On this page
API
type RemoveStringIndexUnknownKey<K, V> = string extends K ? unknown extends V ? never : K : K
Jump to details