Skip to content

Commit 1891946

Browse files
F3n67upull[bot]
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 166df4d commit 1891946

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
@@ -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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3030,7 +3030,7 @@ function copyFileSync(src, dest, mode) {
30303030
* @param {string | URL} src
30313031
* @param {string | URL} dest
30323032
* @param {object} [options]
3033-
* @param {() => any} callback
3033+
* @param {(err?: Error) => any} callback
30343034
* @returns {void}
30353035
*/
30363036
function cp(src, dest, options, callback) {

0 commit comments

Comments
 (0)