Skip to content

Commit 417927b

Browse files
SemigradskyRafaelGSS
authored andcommitted
doc: fix filename type in watch result
PR-URL: #48032 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ca2ae86 commit 417927b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/fs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ added:
16681668
should stop.
16691669
* Returns: {AsyncIterator} of objects with the properties:
16701670
* `eventType` {string} The type of change
1671-
* `filename` {string|Buffer} The name of the file changed.
1671+
* `filename` {string|Buffer|null} The name of the file changed.
16721672
16731673
Returns an async iterator that watches for changes on `filename`, where `filename`
16741674
is either a file or a directory.
@@ -4492,7 +4492,7 @@ changes:
44924492
* `signal` {AbortSignal} allows closing the watcher with an AbortSignal.
44934493
* `listener` {Function|undefined} **Default:** `undefined`
44944494
* `eventType` {string}
4495-
* `filename` {string|Buffer}
4495+
* `filename` {string|Buffer|null}
44964496
* Returns: {fs.FSWatcher}
44974497
44984498
Watch for changes on `filename`, where `filename` is either a file or a

0 commit comments

Comments
 (0)