doc: fix filename type in watch result

PR-URL: https://github.com/nodejs/node/pull/48032
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Dmitry Semigradsky 2023-06-23 22:17:32 +03:00 committed by GitHub
parent 1746ee20ef
commit 9b61322e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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