@types/node 18.7.3 → 18.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- node/README.md +1 -1
- node/package.json +2 -2
- node/perf_hooks.d.ts +13 -3
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 15 Aug 2022 10:32:01 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.7.
|
|
3
|
+
"version": "18.7.4",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "b8180530e67efb3e6400cf53960bd6eaa9ba0a0b1aed842028c45354ea07124d",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|
node/perf_hooks.d.ts
CHANGED
|
@@ -85,6 +85,14 @@ declare module 'perf_hooks' {
|
|
|
85
85
|
* @since v16.0.0
|
|
86
86
|
*/
|
|
87
87
|
readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type.
|
|
88
|
+
toJSON(): any;
|
|
89
|
+
}
|
|
90
|
+
class PerformanceMark extends PerformanceEntry {
|
|
91
|
+
readonly duration: 0;
|
|
92
|
+
readonly entryType: 'mark';
|
|
93
|
+
}
|
|
94
|
+
class PerformanceMeasure extends PerformanceEntry {
|
|
95
|
+
readonly entryType: 'measure';
|
|
88
96
|
}
|
|
89
97
|
/**
|
|
90
98
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
@@ -226,8 +234,9 @@ declare module 'perf_hooks' {
|
|
|
226
234
|
* and whose performanceEntry.duration is always 0.
|
|
227
235
|
* Performance marks are used to mark specific significant moments in the Performance Timeline.
|
|
228
236
|
* @param name
|
|
237
|
+
* @return The PerformanceMark entry that was created
|
|
229
238
|
*/
|
|
230
|
-
mark(name?: string, options?: MarkOptions):
|
|
239
|
+
mark(name?: string, options?: MarkOptions): PerformanceMark;
|
|
231
240
|
/**
|
|
232
241
|
* Creates a new PerformanceMeasure entry in the Performance Timeline.
|
|
233
242
|
* A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
|
|
@@ -242,9 +251,10 @@ declare module 'perf_hooks' {
|
|
|
242
251
|
* @param name
|
|
243
252
|
* @param startMark
|
|
244
253
|
* @param endMark
|
|
254
|
+
* @return The PerformanceMeasure entry that was created
|
|
245
255
|
*/
|
|
246
|
-
measure(name: string, startMark?: string, endMark?: string):
|
|
247
|
-
measure(name: string, options: MeasureOptions):
|
|
256
|
+
measure(name: string, startMark?: string, endMark?: string): PerformanceMeasure;
|
|
257
|
+
measure(name: string, options: MeasureOptions): PerformanceMeasure;
|
|
248
258
|
/**
|
|
249
259
|
* An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones.
|
|
250
260
|
*/
|