Skip to content

Commit

Permalink
doc: fix filename type in watch result
Browse files Browse the repository at this point in the history
PR-URL: nodejs#48032
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Semigradsky authored and Ceres6 committed Aug 14, 2023
1 parent 5d302c1 commit 28992e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ added:
should stop.
* Returns: {AsyncIterator} of objects with the properties:
* `eventType` {string} The type of change
* `filename` {string|Buffer} The name of the file changed.
* `filename` {string|Buffer|null} The name of the file changed.
Returns an async iterator that watches for changes on `filename`, where `filename`
is either a file or a directory.
Expand Down Expand Up @@ -4492,7 +4492,7 @@ changes:
* `signal` {AbortSignal} allows closing the watcher with an AbortSignal.
* `listener` {Function|undefined} **Default:** `undefined`
* `eventType` {string}
* `filename` {string|Buffer}
* `filename` {string|Buffer|null}
* Returns: {fs.FSWatcher}
Watch for changes on `filename`, where `filename` is either a file or a
Expand Down

0 comments on commit 28992e9

Please sign in to comment.