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 ruyadorno committed Sep 12, 2023
1 parent 1fe75dc commit e2f3ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/fs.md
Expand Up @@ -1651,7 +1651,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 @@ -4428,7 +4428,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 e2f3ed1

Please sign in to comment.