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
2020-06-06 16:42:35 -04:00
parent 4ba90809ed
commit 2e49010bc8
2 changed files with 4 additions and 2 deletions

View File

@@ -1277,11 +1277,13 @@ added: REPLACEME
Removes the `listener` from the list of handlers for event `type`.
### Class: `NodeEventTarget extends EventTarget`
### Class: `NodeEventTarget`
<!-- YAML
added: REPLACEME
-->
* Extends: {EventTarget}
The `NodeEventTarget` is a Node.js-specific extension to `EventTarget`
that emulates a subset of the `EventEmitter` API.

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',