GeezerVison is showing github.com — doc: fix `filename` type in `watch` result · nodejs/node@417927b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/fs.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1668,7 +1668,7 @@ added: |
1668 | 1668 | should stop. |
1669 | 1669 | * Returns: {AsyncIterator} of objects with the properties: |
1670 | 1670 | * `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. |
1672 | 1672 |
|
1673 | 1673 | Returns an async iterator that watches for changes on `filename`, where `filename` |
1674 | 1674 | is either a file or a directory. |
@@ -4492,7 +4492,7 @@ changes: |
4492 | 4492 | * `signal` {AbortSignal} allows closing the watcher with an AbortSignal. |
4493 | 4493 | * `listener` {Function|undefined} **Default:** `undefined` |
4494 | 4494 | * `eventType` {string} |
4495 | | - * `filename` {string|Buffer} |
| 4495 | + * `filename` {string|Buffer|null} |
4496 | 4496 | * Returns: {fs.FSWatcher} |
4497 | 4497 |
|
4498 | 4498 | Watch for changes on `filename`, where `filename` is either a file or a |
|