writeFileAsync type def [ci skip]

This commit is contained in:
Hailong Wang 2021-09-21 09:09:24 +08:00
parent 82d0faa183
commit bb9faf7caf

3
types/index.d.ts vendored

@ -18,6 +18,9 @@ export function readFile(filename: string, opts?: ParsingOptions): WorkBook;
export function read(data: any, opts?: ParsingOptions): WorkBook;
/** Attempts to write or download workbook data to file */
export function writeFile(data: WorkBook, filename: string, opts?: WritingOptions): any;
/** Attempts to write or download workbook data to file asynchronously */
type CBFunc = () => void;
export function writeFileAsync(filename: string, data: WorkBook, opts: WritingOptions | CBFunc, cb?: CBFunc): any;
/** Attempts to write the workbook data */
export function write(data: WorkBook, opts?: WritingOptions): any;