Skip to content

Commit 01533df

Browse files
F3n67umarco-ippolito
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 102e4ee commit 01533df

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/api/fs.md

+1
Original file line numberDiff line numberDiff line change
@@ -2313,6 +2313,7 @@ changes:
23132313
* `dest` {string|Buffer|URL} destination filename of the copy operation
23142314
* `mode` {integer} modifiers for copy operation. **Default:** `0`.
23152315
* `callback` {Function}
2316+
* `err` {Error}
23162317
23172318
Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it
23182319
already exists. No arguments other than a possible exception are given to the

lib/fs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2999,7 +2999,7 @@ function mkdtempSync(prefix, options) {
29992999
* @param {string | Buffer | URL} src
30003000
* @param {string | Buffer | URL} dest
30013001
* @param {number} [mode]
3002-
* @param {() => any} callback
3002+
* @param {(err?: Error) => any} callback
30033003
* @returns {void}
30043004
*/
30053005
function copyFile(src, dest, mode, callback) {

0 commit comments

Comments
 (0)