export type KeyPath = string[]; export type OptionCheck = AppliedOptions extends Record ? { [K in OptionKey]?: R[K]; } : { [K in OptionKey]: R[K]; }; /** * Improve the type displayed in tooltips by flattening utility types. */ export type Prettify = { [K in keyof T]: T[K]; } & {};