/// declare type RadioDataValue = string[]; interface Data { [key: string]: { hide?: (d: any) => boolean; desc?: string; v: string | boolean; type?: 'switch' | 'radio'; options?: RadioDataValue; }; } declare type Ret = { [K in keyof T]: W; }; export default function (data: T): [Ret, JSX.Element]; export {};