Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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: #33777
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
cjihrig committed Jun 9, 2020
1 parent 85dbd17 commit 862d005
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion doc/api/globals.md
Expand Up @@ -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.

Expand Down
3 changes: 1 addition & 2 deletions tools/doc/type-parser.js
Expand Up @@ -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',
Expand Down

0 comments on commit 862d005

Please sign in to comment.