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: https://github.com/nodejs/node/pull/33777
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
cjihrig authored and Michaël Zasso committed 2021-04-30 14:38:19 +02:00
1 parent d8f8719415
commit 810b1d0cbb
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -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.
+1 -1
View File
@@ -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',