From 395245f1eb54ada2faeedaf8a94983e49683feb7 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Sat, 24 Aug 2019 18:59:14 -0700 Subject: [PATCH] doc,fs: add extends for derived classes PR-URL: https://github.com/nodejs/node/pull/29304 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- doc/api/fs.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 7e8266a90ec63a..1dc2c6841cc0a5 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -374,11 +374,13 @@ value is determined by the `options.encoding` passed to [`fs.readdir()`][] or added: v0.5.8 --> +* Extends {EventEmitter} + A successful call to [`fs.watch()`][] method will return a new `fs.FSWatcher` object. -All `fs.FSWatcher` objects are [`EventEmitter`][]'s that will emit a `'change'` -event whenever a specific watched file is modified. +All `fs.FSWatcher` objects emit a `'change'` event whenever a specific watched +file is modified. ### Event: 'change' +* Extends: {stream.Readable} + A successful call to `fs.createReadStream()` will return a new `fs.ReadStream` object. -All `fs.ReadStream` objects are [Readable Streams][]. - ### Event: 'close' -`WriteStream` is a [Writable Stream][]. +* Extends {stream.Writable} ### Event: 'close'