lovelacejs/lib/types/tableTypes.d.ts
Joshua Shoemaker ba47edec4a
Convert to TS
refact: convert to TS
2022-06-19 18:52:17 -05:00

18 lines
422 B
TypeScript

declare type tableConstructorProps = {
id: string;
label: string;
rows: tableRows;
type?: 'Table';
};
declare type tableRow = Record<string, unknown>;
declare type tableRows = tableRow[];
declare type tableProps = {
id: string;
label: string;
rows: tableRows;
headers: string[];
type: 'Table';
isValid: boolean;
};
export { tableConstructorProps, tableRow, tableRows, tableProps };