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
2020-06-06 16:50:52 -04:00
parent 85dbd17bde
commit 862d005e60
2 changed files with 4 additions and 3 deletions

View File

@@ -55,11 +55,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.

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