Skip to content

Commit e2f3ed1

Browse files
Semigradskyruyadorno
authored andcommittedSep 12, 2023
doc: fix filename type in watch result
PR-URL: #48032 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 1fe75dc commit e2f3ed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ added:
16511651
should stop.
16521652
* Returns: {AsyncIterator} of objects with the properties:
16531653
* `eventType` {string} The type of change
1654-
* `filename` {string|Buffer} The name of the file changed.
1654+
* `filename` {string|Buffer|null} The name of the file changed.
16551655
16561656
Returns an async iterator that watches for changes on `filename`, where `filename`
16571657
is either a file or a directory.
@@ -4428,7 +4428,7 @@ changes:
44284428
* `signal` {AbortSignal} allows closing the watcher with an AbortSignal.
44294429
* `listener` {Function|undefined} **Default:** `undefined`
44304430
* `eventType` {string}
4431-
* `filename` {string|Buffer}
4431+
* `filename` {string|Buffer|null}
44324432
* Returns: {fs.FSWatcher}
44334433
44344434
Watch for changes on `filename`, where `filename` is either a file or a

0 commit comments

Comments
 (0)
Please sign in to comment.