Skip to content

Commit 7832b18

Browse files
F3n67umarco-ippolito
authored andcommitted
doc: add err param to fs.cp callback
PR-URL: #53234 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 01533df commit 7832b18

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
@@ -2399,6 +2399,7 @@ changes:
23992399
* `verbatimSymlinks` {boolean} When `true`, path resolution for symlinks will
24002400
be skipped. **Default:** `false`
24012401
* `callback` {Function}
2402+
* `err` {Error}
24022403
24032404
Asynchronously copies the entire directory structure from `src` to `dest`,
24042405
including subdirectories and files.

lib/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3045,7 +3045,7 @@ function copyFileSync(src, dest, mode) {
30453045
* @param {string | URL} src
30463046
* @param {string | URL} dest
30473047
* @param {object} [options]
3048-
* @param {() => any} callback
3048+
* @param {(err?: Error) => any} callback
30493049
* @returns {void}
30503050
*/
30513051
function cp(src, dest, options, callback) {

0 commit comments

Comments
 (0)