@types/node 20.9.3 → 20.9.5

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 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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
11
+ * Last updated: Thu, 23 Nov 2023 21:35:40 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/http2.d.ts CHANGED
@@ -55,6 +55,7 @@ declare module "http2" {
55
55
  length: number;
56
56
  }
57
57
  export interface ServerStreamFileResponseOptions {
58
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
58
59
  statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean;
59
60
  waitForTrailers?: boolean | undefined;
60
61
  offset?: number | undefined;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.9.3",
3
+ "version": "20.9.5",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -224,7 +224,7 @@
224
224
  "dependencies": {
225
225
  "undici-types": "~5.26.4"
226
226
  },
227
- "typesPublisherContentHash": "acfda37e9f8a4a049f809906b8081a10500ec53b08af6990a0cadd03e73041b0",
227
+ "typesPublisherContentHash": "cd8a86c6bd22ad627d5e5634db95682b25018090a58b6227bd20bc170181834d",
228
228
  "typeScriptVersion": "4.5",
229
229
  "nonNpm": true
230
230
  }
node/timers.d.ts CHANGED
@@ -155,7 +155,7 @@ declare module "timers" {
155
155
  ...args: TArgs
156
156
  ): NodeJS.Timeout;
157
157
  // util.promisify no rest args compability
158
- // tslint:disable-next-line void-return
158
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
159
159
  function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
160
160
  namespace setTimeout {
161
161
  const __promisify__: typeof setTimeoutPromise;
@@ -187,7 +187,7 @@ declare module "timers" {
187
187
  ...args: TArgs
188
188
  ): NodeJS.Timeout;
189
189
  // util.promisify no rest args compability
190
- // tslint:disable-next-line void-return
190
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
191
191
  function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
192
192
  namespace setInterval {
193
193
  const __promisify__: typeof setIntervalPromise;
@@ -221,7 +221,7 @@ declare module "timers" {
221
221
  ...args: TArgs
222
222
  ): NodeJS.Immediate;
223
223
  // util.promisify no rest args compability
224
- // tslint:disable-next-line void-return
224
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
225
225
  function setImmediate(callback: (args: void) => void): NodeJS.Immediate;
226
226
  namespace setImmediate {
227
227
  const __promisify__: typeof setImmediatePromise;
node/ts4.8/http2.d.ts CHANGED
@@ -55,6 +55,7 @@ declare module "http2" {
55
55
  length: number;
56
56
  }
57
57
  export interface ServerStreamFileResponseOptions {
58
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
58
59
  statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean;
59
60
  waitForTrailers?: boolean | undefined;
60
61
  offset?: number | undefined;
node/ts4.8/timers.d.ts CHANGED
@@ -155,7 +155,7 @@ declare module "timers" {
155
155
  ...args: TArgs
156
156
  ): NodeJS.Timeout;
157
157
  // util.promisify no rest args compability
158
- // tslint:disable-next-line void-return
158
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
159
159
  function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
160
160
  namespace setTimeout {
161
161
  const __promisify__: typeof setTimeoutPromise;
@@ -187,7 +187,7 @@ declare module "timers" {
187
187
  ...args: TArgs
188
188
  ): NodeJS.Timeout;
189
189
  // util.promisify no rest args compability
190
- // tslint:disable-next-line void-return
190
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
191
191
  function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
192
192
  namespace setInterval {
193
193
  const __promisify__: typeof setIntervalPromise;
@@ -221,7 +221,7 @@ declare module "timers" {
221
221
  ...args: TArgs
222
222
  ): NodeJS.Immediate;
223
223
  // util.promisify no rest args compability
224
- // tslint:disable-next-line void-return
224
+ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
225
225
  function setImmediate(callback: (args: void) => void): NodeJS.Immediate;
226
226
  namespace setImmediate {
227
227
  const __promisify__: typeof setImmediatePromise;
node/ts4.8/wasi.d.ts CHANGED
@@ -133,7 +133,7 @@ declare module "wasi" {
133
133
  * If `start()` is called more than once, an exception is thrown.
134
134
  * @since v13.3.0, v12.16.0
135
135
  */
136
- start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
136
+ start(instance: object): number; // TODO: avoid DOM dependency until WASM moved to own lib.
137
137
  /**
138
138
  * Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown.
139
139
  *
node/wasi.d.ts CHANGED
@@ -133,7 +133,7 @@ declare module "wasi" {
133
133
  * If `start()` is called more than once, an exception is thrown.
134
134
  * @since v13.3.0, v12.16.0
135
135
  */
136
- start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
136
+ start(instance: object): number; // TODO: avoid DOM dependency until WASM moved to own lib.
137
137
  /**
138
138
  * Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown.
139
139
  *