@types/node 20.14.14 → 20.14.15
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 v20.14/README.md +1 -1
- node v20.14/package.json +2 -2
- node v20.14/perf_hooks.d.ts +30 -1
node v20.14/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated: Fri,
|
11
|
+
* Last updated: Fri, 09 Aug 2024 18:08:59 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node v20.14/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.14.
|
3
|
+
"version": "20.14.15",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -212,6 +212,6 @@
|
|
212
212
|
"dependencies": {
|
213
213
|
"undici-types": "~5.26.4"
|
214
214
|
},
|
215
|
-
"typesPublisherContentHash": "
|
215
|
+
"typesPublisherContentHash": "dacc7432859bb993cc5fa131342c9e8dec90dca267bce1465edcf7b6c4a2e7c8",
|
216
216
|
"typeScriptVersion": "4.8"
|
217
217
|
}
|
node v20.14/perf_hooks.d.ts
CHANGED
@@ -31,7 +31,17 @@
|
|
31
31
|
*/
|
32
32
|
declare module "perf_hooks" {
|
33
33
|
import { AsyncResource } from "node:async_hooks";
|
34
|
-
type EntryType =
|
34
|
+
type EntryType =
|
35
|
+
| "dns" // Node.js only
|
36
|
+
| "function" // Node.js only
|
37
|
+
| "gc" // Node.js only
|
38
|
+
| "http2" // Node.js only
|
39
|
+
| "http" // Node.js only
|
40
|
+
| "mark" // available on the Web
|
41
|
+
| "measure" // available on the Web
|
42
|
+
| "net" // Node.js only
|
43
|
+
| "node" // Node.js only
|
44
|
+
| "resource"; // available on the Web
|
35
45
|
interface NodeGCPerformanceDetail {
|
36
46
|
/**
|
37
47
|
* When `performanceEntry.entryType` is equal to 'gc', the `performance.kind` property identifies
|
@@ -270,6 +280,24 @@ declare module "perf_hooks" {
|
|
270
280
|
* @param name
|
271
281
|
*/
|
272
282
|
mark(name: string, options?: MarkOptions): PerformanceMark;
|
283
|
+
/**
|
284
|
+
* Creates a new `PerformanceResourceTiming` entry in the Resource Timeline.
|
285
|
+
* A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`.
|
286
|
+
* Performance resources are used to mark moments in the Resource Timeline.
|
287
|
+
* @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info)
|
288
|
+
* @param requestedUrl The resource url
|
289
|
+
* @param initiatorType The initiator name, e.g: 'fetch'
|
290
|
+
* @param global
|
291
|
+
* @param cacheMode The cache mode must be an empty string ('') or 'local'
|
292
|
+
* @since v18.2.0, v16.17.0
|
293
|
+
*/
|
294
|
+
markResourceTiming(
|
295
|
+
timingInfo: object,
|
296
|
+
requestedUrl: string,
|
297
|
+
initiatorType: string,
|
298
|
+
global: object,
|
299
|
+
cacheMode: "" | "local",
|
300
|
+
): PerformanceResourceTiming;
|
273
301
|
/**
|
274
302
|
* Creates a new PerformanceMeasure entry in the Performance Timeline.
|
275
303
|
* A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
|
@@ -543,6 +571,7 @@ declare module "perf_hooks" {
|
|
543
571
|
* @since v18.2.0, v16.17.0
|
544
572
|
*/
|
545
573
|
class PerformanceResourceTiming extends PerformanceEntry {
|
574
|
+
readonly entryType: "resource";
|
546
575
|
protected constructor();
|
547
576
|
/**
|
548
577
|
* The high resolution millisecond timestamp at immediately before dispatching the `fetch`
|