MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / downloadAllSheetsAsCsv

Function downloadAllSheetsAsCsv

src/status/utils.ts:13–32  ·  view source on GitHub ↗
(
  sheetData: SheetState[],
  sheetDefinitions: SheetDefinition[],
  enumLabelDict: EnumLabelDict,
  csvDownloadMode: CsvDownloadMode
)

Source from the content-addressed store, hash-verified

11}
12
13export function downloadAllSheetsAsCsv(
14 sheetData: SheetState[],
15 sheetDefinitions: SheetDefinition[],
16 enumLabelDict: EnumLabelDict,
17 csvDownloadMode: CsvDownloadMode
18) {
19 sheetData.forEach((sheet) => {
20 const sheetDefinition = sheetDefinitions.find(
21 (s) => s.id === sheet.sheetId
22 );
23 if (!sheetDefinition) return;
24
25 downloadSheetAsCsv(
26 sheetDefinition,
27 sheet.rows,
28 enumLabelDict,
29 csvDownloadMode
30 );
31 });
32}
33
34export const getDataSize = (
35 sheetData: SheetState[],

Callers 1

SummaryInfoFunction · 0.90

Calls 1

downloadSheetAsCsvFunction · 0.90

Tested by

no test coverage detected