@types/node 16.11.28 → 16.11.31

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 v16.11/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sun, 24 Apr 2022 21:01:38 GMT
11
+ * Last updated: Tue, 26 Apr 2022 21:01:46 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -258,7 +258,7 @@ declare module 'async_hooks' {
258
258
  * @param type The type of async event.
259
259
  * @param triggerAsyncId The ID of the execution context that created
260
260
  * this async event (default: `executionAsyncId()`), or an
261
- * AsyncResourceOptions object (since 9.3)
261
+ * AsyncResourceOptions object (since v9.3.0)
262
262
  */
263
263
  constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
264
264
  /**
@@ -57,7 +57,7 @@ declare module 'diagnostics_channel' {
57
57
  * @return The named channel object
58
58
  */
59
59
  function channel(name: string): Channel;
60
- type ChannelListener = (name: string, message: unknown) => void;
60
+ type ChannelListener = (message: unknown, name: string) => void;
61
61
  /**
62
62
  * The class `Channel` represents an individual named channel within the data
63
63
  * pipeline. It is use to track subscribers and to publish messages when there
@@ -262,11 +262,11 @@ declare namespace NodeJS {
262
262
  id: string;
263
263
  filename: string;
264
264
  loaded: boolean;
265
- /** @deprecated since 14.6.0 Please use `require.main` and `module.children` instead. */
265
+ /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
266
266
  parent: Module | null | undefined;
267
267
  children: Module[];
268
268
  /**
269
- * @since 11.14.0
269
+ * @since v11.14.0
270
270
  *
271
271
  * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
272
272
  */
node v16.11/http2.d.ts CHANGED
@@ -580,6 +580,7 @@ declare module 'http2' {
580
580
  parent?: number | undefined;
581
581
  weight?: number | undefined;
582
582
  waitForTrailers?: boolean | undefined;
583
+ signal?: AbortSignal | undefined;
583
584
  }
584
585
  export interface SessionState {
585
586
  effectiveLocalWindowSize?: number | undefined;
@@ -1782,7 +1782,7 @@ declare module 'inspector' {
1782
1782
  * Connects a session to the main thread inspector back-end.
1783
1783
  * An exception will be thrown if this API was not called on a Worker
1784
1784
  * thread.
1785
- * @since 12.11.0
1785
+ * @since v12.11.0
1786
1786
  */
1787
1787
  connectToMainThread(): void;
1788
1788
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.28",
3
+ "version": "16.11.31",
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": "df4f8c8c1799754c3c8e88713cdfe28b3c7ff3443983345814346f78c2ddb455",
223
+ "typesPublisherContentHash": "6ecfbde5b16ce1cec1ef741b2ed18fc60024e2dd016f0a563d2709007c36fe57",
224
224
  "typeScriptVersion": "3.9"
225
225
  }