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
10 lines (9 loc) • 443 B
TypeScript
import { UseExcel, ExcelReturn } from "./interfaces/use-excel";
import { ITablePayload } from "./utils/create-table";
declare function handleDownload({ fileName, sheet, tablePayload, }: {
fileName: string;
sheet: string;
tablePayload?: ITablePayload;
}, currentTableRef?: HTMLElement): boolean;
declare function excel({ currentTableRef, filename, sheet }: UseExcel): ExcelReturn;
export { excel, handleDownload as downloadExcel };