@types/node 18.7.1 → 18.7.2

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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/package.json +2 -2
  3. node/perf_hooks.d.ts +29 -0
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: Wed, 10 Aug 2022 20:02:19 GMT
11
+ * Last updated: Fri, 12 Aug 2022 05:32:13 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.1",
3
+ "version": "18.7.2",
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": "dabf6406f99a6dad52b569d7fc0180c6fdcb855b56d14b54fb274ff38f94d24f",
223
+ "typesPublisherContentHash": "0f1f505e28678caf9863e39c50c96eb5df73c486c02db76259ccf5e867edb1b1",
224
224
  "typeScriptVersion": "4.0"
225
225
  }
node/perf_hooks.d.ts CHANGED
@@ -191,6 +191,35 @@ declare module 'perf_hooks' {
191
191
  * @param name
192
192
  */
193
193
  clearMarks(name?: string): void;
194
+ /**
195
+ * If name is not provided, removes all PerformanceMeasure objects from the Performance Timeline.
196
+ * If name is provided, removes only the named measure.
197
+ * @param name
198
+ * @since v16.7.0
199
+ */
200
+ clearMeasures(name?: string): void;
201
+ /**
202
+ * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`.
203
+ * If you are only interested in performance entries of certain types or that have certain names, see
204
+ * `performance.getEntriesByType()` and `performance.getEntriesByName()`.
205
+ * @since v16.7.0
206
+ */
207
+ getEntries(): PerformanceEntry[];
208
+ /**
209
+ * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`
210
+ * whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`.
211
+ * @param name
212
+ * @param type
213
+ * @since v16.7.0
214
+ */
215
+ getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
216
+ /**
217
+ * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`
218
+ * whose `performanceEntry.entryType` is equal to `type`.
219
+ * @param type
220
+ * @since v16.7.0
221
+ */
222
+ getEntriesByType(type: EntryType): PerformanceEntry[];
194
223
  /**
195
224
  * Creates a new PerformanceMark entry in the Performance Timeline.
196
225
  * A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark',