Skip to content

Commit d89bde2

Browse files
F3n67uRafaelGSS
authored andcommitted
doc: add err param to fs.copyFile callback
PR-URL: #53234 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 062a0c6 commit d89bde2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/api/fs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,6 +2388,7 @@ changes:
23882388
* `dest` {string|Buffer|URL} destination filename of the copy operation
23892389
* `mode` {integer} modifiers for copy operation. **Default:** `0`.
23902390
* `callback` {Function}
2391+
* `err` {Error}
23912392
23922393
Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it
23932394
already exists. No arguments other than a possible exception are given to the

lib/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2979,7 +2979,7 @@ function mkdtempSync(prefix, options) {
29792979
* @param {string | Buffer | URL} src
29802980
* @param {string | Buffer | URL} dest
29812981
* @param {number} [mode]
2982-
* @param {() => any} callback
2982+
* @param {(err?: Error) => any} callback
29832983
* @returns {void}
29842984
*/
29852985
function copyFile(src, dest, mode, callback) {

0 commit comments

Comments
 (0)