From 265ffd97d5f86c17b62d4b4515cc0c1ac7f58d33 Mon Sep 17 00:00:00 2001 From: Beeno Tung Date: Fri, 16 Jan 2026 20:30:01 +0800 Subject: [PATCH] patch: add missing type on optional error in the callback --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index c75f4ae..a81f664 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -28,7 +28,7 @@ export function writeFile(data: WorkBook, filename: string, opts?: WritingOption /** Attempts to write or download workbook data to XLSX file */ export function writeFileXLSX(data: WorkBook, filename: string, opts?: WritingOptions): void; /** Attempts to write or download workbook data to file asynchronously */ -type CBFunc = () => void; +type CBFunc = (error?: Error) => void; export function writeFileAsync(filename: string, data: WorkBook, opts: WritingOptions | CBFunc, cb?: CBFunc): void; /** Attempts to write the workbook data */ export function write(data: WorkBook, opts: WritingOptions): any;