Skip to content

Commit 718a3ab

Browse files
F3n67uRafaelGSS
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 d89bde2 commit 718a3ab

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
@@ -2477,6 +2477,7 @@ changes:
24772477
* `verbatimSymlinks` {boolean} When `true`, path resolution for symlinks will
24782478
be skipped. **Default:** `false`
24792479
* `callback` {Function}
2480+
* `err` {Error}
24802481
24812482
Asynchronously copies the entire directory structure from `src` to `dest`,
24822483
including subdirectories and files.

lib/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,7 @@ function copyFileSync(src, dest, mode) {
30253025
* @param {string | URL} src
30263026
* @param {string | URL} dest
30273027
* @param {object} [options]
3028-
* @param {() => any} callback
3028+
* @param {(err?: Error) => any} callback
30293029
* @returns {void}
30303030
*/
30313031
function cp(src, dest, options, callback) {

0 commit comments

Comments
 (0)