Skip to content

Commit 85dbd17

Browse files
committed
doc: make perf_hooks Extends usage consistent
The docs use `* Extends: {type}` to define inheritance. This commit updates the perf_hooks documentation to be consistent. PR-URL: #33777 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2e49010 commit 85dbd17

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/api/perf_hooks.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,13 @@ The value may be one of:
255255
* `perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY`
256256
* `perf_hooks.constants.NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE`
257257

258-
## Class: `PerformanceNodeTiming extends PerformanceEntry`
258+
## Class: `PerformanceNodeTiming`
259259
<!-- YAML
260260
added: v8.5.0
261261
-->
262262

263+
* Extends: {PerformanceEntry}
264+
263265
_This property is an extension by Node.js. It is not available in Web browsers._
264266

265267
Provides timing details for Node.js itself. The constructor of this class

tools/doc/type-parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const customTypesMap = {
134134
'Histogram': 'perf_hooks.html#perf_hooks_class_histogram',
135135
'PerformanceEntry': 'perf_hooks.html#perf_hooks_class_performanceentry',
136136
'PerformanceNodeTiming':
137-
'perf_hooks.html#perf_hooks_class_performancenodetiming_extends_performanceentry', // eslint-disable-line max-len
137+
'perf_hooks.html#perf_hooks_class_performancenodetiming',
138138
'PerformanceObserver':
139139
'perf_hooks.html#perf_hooks_class_perf_hooks_performanceobserver',
140140
'PerformanceObserverEntryList':

0 commit comments

Comments
 (0)