doc: make globals Extends usage consistent

The docs use `* Extends: {type}` to define inheritance. This
commit updates the globals 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:31 +02:00
1 parent 2f7afd11a4
commit d9d7ebd0b4
2 files changed
+4 -3

No files matched your search

+3 -1
View File
@@ -57,11 +57,13 @@ added: REPLACEME
* Type: {AbortSignal}
### Class: `AbortSignal extends EventTarget`
### Class: `AbortSignal`
<!-- YAML
added: REPLACEME
-->
* Extends: {EventTarget}
The `AbortSignal` is used to notify observers when the
`abortController.abort()` method is called.
+1 -2
View File
@@ -27,8 +27,7 @@ const customTypesMap = {
'this': `${jsDocPrefix}Reference/Operators/this`,
'AbortController': 'globals.html#globals_class_abortcontroller',
'AbortSignal':
'globals.html#globals_class_abortsignal_extends_eventtarget',
'AbortSignal': 'globals.html#globals_class_abortsignal',
'ArrayBufferView':
'https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView',