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: #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 RafaelGSS committed Jul 3, 2023
1 parent ca2ae86 commit 417927b
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 417927b

Please sign in to comment.