UNPKG

react-export-table-to-excel

Version:

It allows you to export an HTML table just by sending the table reference and the name with which you want the file to be saved

8 lines (7 loc) 250 B
export interface ITablePayload { header: string[]; body: Array<{ [key: string]: string | number | boolean; }> | Array<(string | number | boolean)[]>; } export default function createTable({ header, body }: ITablePayload): string;