mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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:
parent
1746ee20ef
commit
9b61322e02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user