X Tutup
The Wayback Machine - https://web.archive.org/web/20230127014759/https://github.com/nodejs/node/commit/810b1d0cbb
Skip to content
Permalink
Browse files
doc: make events Extends usage consistent
The docs use `* Extends: {type}` to define inheritance. This
commit updates the events documentation to be consistent.

PR-URL: #33777
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
cjihrig authored and targos committed Apr 30, 2021
1 parent d8f8719 commit 810b1d0cbbfa1bd9341d89534c77a3ba49d44397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
@@ -1471,11 +1471,13 @@ added: v14.5.0

Removes the `listener` from the list of handlers for event `type`.

### Class: `NodeEventTarget extends EventTarget`
### Class: `NodeEventTarget`
<!-- YAML
added: v14.5.0
-->

* Extends: {EventTarget}

The `NodeEventTarget` is a Node.js-specific extension to `EventTarget`
that emulates a subset of the `EventEmitter` API.

@@ -127,7 +127,7 @@ const customTypesMap = {
'net.Socket': 'net.html#net_class_net_socket',

'NodeEventTarget':
'events.html#events_class_nodeeventtarget_extends_eventtarget',
'events.html#events_class_nodeeventtarget',

'os.constants.dlopen': 'os.html#os_dlopen_constants',

0 comments on commit 810b1d0

Please sign in to comment.
X Tutup