11 lines
294 B
TypeScript
Executable File
11 lines
294 B
TypeScript
Executable File
import type * as exceljs from "exceljs";
|
|
export type ExcelJS = typeof exceljs;
|
|
const w = window as unknown as {
|
|
_exceljs: any;
|
|
};
|
|
export const importExcelJs = async (): Promise<ExcelJS> => {
|
|
if (w._exceljs) return w._exceljs;
|
|
w._exceljs = await import("exceljs");
|
|
return w._exceljs;
|
|
};
|