diff --git a/doc/api/fs.md b/doc/api/fs.md index 07dd54f83dc..5d0dd605b32 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2313,6 +2313,7 @@ changes: * `dest` {string|Buffer|URL} destination filename of the copy operation * `mode` {integer} modifiers for copy operation. **Default:** `0`. * `callback` {Function} + * `err` {Error} Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it already exists. No arguments other than a possible exception are given to the diff --git a/lib/fs.js b/lib/fs.js index 0cddd128623..fd9e1e316bc 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -2999,7 +2999,7 @@ function mkdtempSync(prefix, options) { * @param {string | Buffer | URL} src * @param {string | Buffer | URL} dest * @param {number} [mode] - * @param {() => any} callback + * @param {(err?: Error) => any} callback * @returns {void} */ function copyFile(src, dest, mode, callback) {