mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user