Skip to content

Commit 2f7afd1

Browse files
cjihrigtargos
authored andcommitted
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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 810b1d0 commit 2f7afd1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/api/perf_hooks.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,13 @@ added: v8.5.0
317317
The high resolution millisecond timestamp marking the starting time of the
318318
Performance Entry.
319319

320-
## Class: `PerformanceNodeTiming extends PerformanceEntry`
320+
## Class: `PerformanceNodeTiming`
321321
<!-- YAML
322322
added: v8.5.0
323323
-->
324324

325+
* Extends: {PerformanceEntry}
326+
325327
_This property is an extension by Node.js. It is not available in Web browsers._
326328

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

tools/doc/type-parser.js

Lines changed: 1 addition & 1 deletion
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)