@types/node 12.20.52 → 12.20.53

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 v12.20/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/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 12 May 2022 21:31:47 GMT
11
+ * Last updated: Tue, 31 May 2022 18:31:36 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
@@ -179,9 +179,9 @@ declare namespace setTimeout {
179
179
  function __promisify__(ms: number): Promise<void>;
180
180
  function __promisify__<T>(ms: number, value: T): Promise<T>;
181
181
  }
182
- declare function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
182
+ declare function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
183
183
  declare function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
184
- declare function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
184
+ declare function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
185
185
  declare function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
186
186
  declare namespace setImmediate {
187
187
  function __promisify__(): Promise<void>;
@@ -1249,8 +1249,8 @@ declare namespace NodeJS {
1249
1249
  WeakMap: WeakMapConstructor;
1250
1250
  WeakSet: WeakSetConstructor;
1251
1251
  clearImmediate: (immediateId: Immediate) => void;
1252
- clearInterval: (intervalId: Timeout) => void;
1253
- clearTimeout: (timeoutId: Timeout) => void;
1252
+ clearInterval: (intervalId: Timeout | string | number) => void;
1253
+ clearTimeout: (timeoutId: Timeout | string | number) => void;
1254
1254
  console: typeof console;
1255
1255
  decodeURI: typeof decodeURI;
1256
1256
  decodeURIComponent: typeof decodeURIComponent;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.20.52",
3
+ "version": "12.20.53",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -190,6 +190,6 @@
190
190
  },
191
191
  "scripts": {},
192
192
  "dependencies": {},
193
- "typesPublisherContentHash": "ff0fbd6a0d46cf1013682f942090aff6f92f09499ceb8e02c618e8def1f4a1af",
193
+ "typesPublisherContentHash": "26bf08ddda0460b1b63e88723de8002d6b235f8548d9ccd5f19fb507fcd96287",
194
194
  "typeScriptVersion": "3.9"
195
195
  }
node v12.20/timers.d.ts CHANGED
@@ -4,9 +4,9 @@ declare module 'timers' {
4
4
  function __promisify__(ms: number): Promise<void>;
5
5
  function __promisify__<T>(ms: number, value: T): Promise<T>;
6
6
  }
7
- function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
7
+ function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
8
8
  function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
9
- function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
9
+ function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
10
10
  function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate;
11
11
  namespace setImmediate {
12
12
  function __promisify__(): Promise<void>;