// Maps interface keys to optional export type Optional = { [P in keyof T]?: T[P] }; // Maps interface keys to nullable export type Nullable = { [P in keyof T]: T[P] | null };