Extract the keys of required properties.
Object type to analyze
Identifies properties that must be present and do not allow undefined.
undefined
type Obj = { a: number; b?: string; c: number | undefined; d: boolean };type ReqKeys = RequiredKeys< Obj >; // 'a' | 'd' Copy
type Obj = { a: number; b?: string; c: number | undefined; d: boolean };type ReqKeys = RequiredKeys< Obj >; // 'a' | 'd'
Extract the keys of required properties.