diff --git a/doc/api/fs.md b/doc/api/fs.md index ab5728b67ff8b2..261d6c532eb952 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1651,7 +1651,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. @@ -4428,7 +4428,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