Skip to content

Commit

Permalink
doc: add err param to fs.cp callback
Browse files Browse the repository at this point in the history
PR-URL: #53234
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
F3n67u authored and marco-ippolito committed Jul 19, 2024
1 parent 01533df commit 7832b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2399,6 +2399,7 @@ changes:
* `verbatimSymlinks` {boolean} When `true`, path resolution for symlinks will
be skipped. **Default:** `false`
* `callback` {Function}
* `err` {Error}
Asynchronously copies the entire directory structure from `src` to `dest`,
including subdirectories and files.
Expand Down
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3045,7 +3045,7 @@ function copyFileSync(src, dest, mode) {
* @param {string | URL} src
* @param {string | URL} dest
* @param {object} [options]
* @param {() => any} callback
* @param {(err?: Error) => any} callback
* @returns {void}
*/
function cp(src, dest, options, callback) {
Expand Down

0 comments on commit 7832b18

Please sign in to comment.