From 90747905ad56acbcd93f675deaf239e0570fbe25 Mon Sep 17 00:00:00 2001 From: edulecca Date: Mon, 18 Apr 2022 00:09:41 -0300 Subject: [PATCH] Fixed `writeFileAsync` doc [ci skip] --- README.md | 2 +- docbits/40_interface.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bd31722..d23bbeb 100644 --- a/README.md +++ b/README.md @@ -2208,7 +2208,7 @@ Parse options are described in the [Parsing Options](#parsing-options) section. `XLSX.writeFile(wb, filename, write_opts)` attempts to write `wb` to `filename`. In browser-based environments, it will attempt to force a client-side download. -`XLSX.writeFileAsync(wb, filename, o, cb)` attempts to write `wb` to `filename`. +`XLSX.writeFileAsync(filename, wb, o, cb)` attempts to write `wb` to `filename`. If `o` is omitted, the writer will use the third argument as the callback. `XLSX.stream` contains a set of streaming write functions. diff --git a/docbits/40_interface.md b/docbits/40_interface.md index ac8f221..1dc197e 100644 --- a/docbits/40_interface.md +++ b/docbits/40_interface.md @@ -21,7 +21,7 @@ Parse options are described in the [Parsing Options](#parsing-options) section. `XLSX.writeFile(wb, filename, write_opts)` attempts to write `wb` to `filename`. In browser-based environments, it will attempt to force a client-side download. -`XLSX.writeFileAsync(wb, filename, o, cb)` attempts to write `wb` to `filename`. +`XLSX.writeFileAsync(filename, wb, o, cb)` attempts to write `wb` to `filename`. If `o` is omitted, the writer will use the third argument as the callback. `XLSX.stream` contains a set of streaming write functions.