diff --git a/doc/api/fs.md b/doc/api/fs.md index 01abd668c499b0..8007290b3fcb82 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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