KeyWithValueType is the keys from a given a Record type whose values are of a type that extends Allowed.
KeyWithValueType
Record
Allowed
type Obj = { a: number; b: number; c: string; d: boolean;}KeyWithValueType<Obj, number> // "a" | "b"KeyWithValueType<Obj, string | boolean> // "c" | "d" Copy
type Obj = { a: number; b: number; c: string; d: boolean;}KeyWithValueType<Obj, number> // "a" | "b"KeyWithValueType<Obj, string | boolean> // "c" | "d"
T The record type with keys.
Allowed The allowed value type.
KeyWithValueTypeis the keys from a given aRecordtype whose values are of a type that extendsAllowed.