declare type SelectOption = { label: string; value: T; }; declare type MakeOptions = { [P in keyof T]: T[P] extends any[] ? SelectOption[] : SelectOption; };