Get keys of T that are optional
type Obj = { a: number; b?: string; c: number | undefined; d: boolean };type OptKeys = OptionalKeys<Obj>; // "b" | "c" Copy
type Obj = { a: number; b?: string; c: number | undefined; d: boolean };type OptKeys = OptionalKeys<Obj>; // "b" | "c"
Get keys of T that are optional