From 2f7afd11a4586cb77cac798fbd31e0e6d04f4078 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sat, 6 Jun 2020 16:48:02 -0400 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/33777 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- doc/api/perf_hooks.md | 4 +++- tools/doc/type-parser.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index bad6f459b06aea..d035a14feec04f 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -317,11 +317,13 @@ added: v8.5.0 The high resolution millisecond timestamp marking the starting time of the Performance Entry. -## Class: `PerformanceNodeTiming extends PerformanceEntry` +## Class: `PerformanceNodeTiming` +* Extends: {PerformanceEntry} + _This property is an extension by Node.js. It is not available in Web browsers._ Provides timing details for Node.js itself. The constructor of this class diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js index bb8412ad801c1b..31383a2cd6d0f5 100644 --- a/tools/doc/type-parser.js +++ b/tools/doc/type-parser.js @@ -134,7 +134,7 @@ const customTypesMap = { 'Histogram': 'perf_hooks.html#perf_hooks_class_histogram', 'PerformanceEntry': 'perf_hooks.html#perf_hooks_class_performanceentry', 'PerformanceNodeTiming': - 'perf_hooks.html#perf_hooks_class_performancenodetiming_extends_performanceentry', // eslint-disable-line max-len + 'perf_hooks.html#perf_hooks_class_performancenodetiming', 'PerformanceObserver': 'perf_hooks.html#perf_hooks_class_perf_hooks_performanceobserver', 'PerformanceObserverEntryList':