@types/node 10.17.20 → 10.17.24

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 v10.17/README.md CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v10.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 17 Apr 2020 21:12:37 GMT
11
+ * Last updated: Tue, 19 May 2020 23:09:37 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nicolas Voigt](https://github.com/octo-sniffle), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Jeremie Rodriguez](https://github.com/jeremiergz), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Minh Son Nguyen](https://github.com/nguymin4), and [ExE Boss](https://github.com/ExE-Boss).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nicolas Voigt](https://github.com/octo-sniffle), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Jeremie Rodriguez](https://github.com/jeremiergz), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Minh Son Nguyen](https://github.com/nguymin4), and [ExE Boss](https://github.com/ExE-Boss).
node v10.17/assert.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare module "assert" {
2
- function internal(value: any, message?: string | Error): void;
3
- namespace internal {
2
+ function assert(value: any, message?: string | Error): void;
3
+ namespace assert {
4
4
  class AssertionError implements Error {
5
5
  name: string;
6
6
  message: string;
@@ -45,8 +45,8 @@ declare module "assert" {
45
45
  function doesNotReject(block: Function | Promise<any>, message?: string | Error): Promise<void>;
46
46
  function doesNotReject(block: Function | Promise<any>, error: RegExp | Function, message?: string | Error): Promise<void>;
47
47
 
48
- const strict: typeof internal;
48
+ const strict: typeof assert;
49
49
  }
50
50
 
51
- export = internal;
51
+ export = assert;
52
52
  }
node v10.17/base.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  // base definnitions for all NodeJS modules that are not specific to any version of TypeScript
2
2
  /// <reference path="globals.d.ts" />
3
- /// <reference path="assert.d.ts" />
4
3
  /// <reference path="async_hooks.d.ts" />
5
4
  /// <reference path="buffer.d.ts" />
6
5
  /// <reference path="child_process.d.ts" />
@@ -843,6 +843,7 @@ declare namespace NodeJS {
843
843
  on(event: "newListener", listener: NewListenerListener): this;
844
844
  on(event: "removeListener", listener: RemoveListenerListener): this;
845
845
  on(event: "multipleResolves", listener: MultipleResolveListener): this;
846
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
846
847
 
847
848
  once(event: "beforeExit", listener: BeforeExitListener): this;
848
849
  once(event: "disconnect", listener: DisconnectListener): this;
node v10.17/index.d.ts CHANGED
@@ -8,7 +8,6 @@
8
8
  // Andrew Makarov <https://github.com/r3nya>
9
9
  // Bruno Scheufler <https://github.com/brunoscheufler>
10
10
  // Chigozirim C. <https://github.com/smac89>
11
- // Christian Vaagland Tellnes <https://github.com/tellnes>
12
11
  // Deividas Bakanas <https://github.com/DeividasBakanas>
13
12
  // Eugene Y. Q. Shen <https://github.com/eyqs>
14
13
  // Flarna <https://github.com/Flarna>
@@ -53,6 +52,9 @@
53
52
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
54
53
  /// <reference path="base.d.ts" />
55
54
 
55
+ // We can't include assert.d.ts in base.d.ts, as it'll cause duplication errors in +ts3.7
56
+ /// <reference path="assert.d.ts" />
57
+
56
58
  // TypeScript 2.1-specific augmentations:
57
59
 
58
60
  // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.17.20",
3
+ "version": "10.17.24",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -44,11 +44,6 @@
44
44
  "url": "https://github.com/smac89",
45
45
  "githubUsername": "smac89"
46
46
  },
47
- {
48
- "name": "Christian Vaagland Tellnes",
49
- "url": "https://github.com/tellnes",
50
- "githubUsername": "tellnes"
51
- },
52
47
  {
53
48
  "name": "Deividas Bakanas",
54
49
  "url": "https://github.com/DeividasBakanas",
@@ -193,6 +188,11 @@
193
188
  "main": "",
194
189
  "types": "index.d.ts",
195
190
  "typesVersions": {
191
+ ">=3.7.0-0": {
192
+ "*": [
193
+ "ts3.7/*"
194
+ ]
195
+ },
196
196
  ">=3.2.0-0": {
197
197
  "*": [
198
198
  "ts3.2/*"
@@ -206,6 +206,6 @@
206
206
  },
207
207
  "scripts": {},
208
208
  "dependencies": {},
209
- "typesPublisherContentHash": "2afcaececa42c9663cf4945aac509cf9a58e9b7e3f80ee8395a87fe6ac0f8d7e",
210
- "typeScriptVersion": "2.8"
209
+ "typesPublisherContentHash": "0adc707c5ae9841177fcc7b9a39b2ffac9c03d40bafd0ea06465a0b0ca0b576e",
210
+ "typeScriptVersion": "3.0"
211
211
  }
@@ -0,0 +1,21 @@
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.2.
2
+
3
+ // NOTE: TypeScript version-specific augmentations can be found in the following paths:
4
+ // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5
+ // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6
+ // - ~/ts3.2/base.d.ts - Definitions specific to TypeScript 3.2
7
+ // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with assert pulled in
8
+
9
+ // Reference required types from the default lib:
10
+ /// <reference lib="es2018" />
11
+ /// <reference lib="esnext.asynciterable" />
12
+ /// <reference lib="esnext.intl" />
13
+ /// <reference lib="esnext.bigint" />
14
+
15
+ // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
16
+ // tslint:disable-next-line:no-bad-reference
17
+ /// <reference path="../base.d.ts" />
18
+
19
+ // TypeScript 3.2-specific augmentations:
20
+ /// <reference path="util.d.ts" />
21
+ /// <reference path="globals.d.ts" />
@@ -1,20 +1,8 @@
1
1
  // NOTE: These definitions support NodeJS and TypeScript 3.2.
2
+ // This is requried to enable typing assert in ts3.7 without causing errors
3
+ // Typically type modifiations should be made in base.d.ts instead of here
2
4
 
3
- // NOTE: TypeScript version-specific augmentations can be found in the following paths:
4
- // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5
- // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6
- // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
5
+ /// <reference path="base.d.ts" />
7
6
 
8
- // Reference required types from the default lib:
9
- /// <reference lib="es2018" />
10
- /// <reference lib="esnext.asynciterable" />
11
- /// <reference lib="esnext.intl" />
12
- /// <reference lib="esnext.bigint" />
13
-
14
- // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
15
7
  // tslint:disable-next-line:no-bad-reference
16
- /// <reference path="../base.d.ts" />
17
-
18
- // TypeScript 3.2-specific augmentations:
19
- /// <reference path="util.d.ts" />
20
- /// <reference path="globals.d.ts" />
8
+ /// <reference path="../assert.d.ts" />
@@ -0,0 +1,52 @@
1
+ declare module "assert" {
2
+ function assert(value: any, message?: string | Error): asserts value;
3
+ namespace assert {
4
+ class AssertionError implements Error {
5
+ name: string;
6
+ message: string;
7
+ actual: any;
8
+ expected: any;
9
+ operator: string;
10
+ generatedMessage: boolean;
11
+ code: 'ERR_ASSERTION';
12
+
13
+ constructor(options?: {
14
+ message?: string; actual?: any; expected?: any;
15
+ operator?: string; stackStartFn?: Function
16
+ });
17
+ }
18
+
19
+ function fail(message?: string | Error): never;
20
+ /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
21
+ function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never;
22
+ function ok(value: any, message?: string | Error): asserts value;
23
+ /** @deprecated since v9.9.0 - use strictEqual() instead. */
24
+ function equal(actual: any, expected: any, message?: string | Error): void;
25
+ /** @deprecated since v9.9.0 - use notStrictEqual() instead. */
26
+ function notEqual(actual: any, expected: any, message?: string | Error): void;
27
+ /** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
28
+ function deepEqual(actual: any, expected: any, message?: string | Error): void;
29
+ /** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
30
+ function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
31
+ function strictEqual<T>(actual: any, expected: T, message?: string | Error): asserts actual is T;
32
+ function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
33
+ function deepStrictEqual<T>(actual: any, expected: T, message?: string | Error): asserts actual is T;
34
+ function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
35
+
36
+ function throws(block: Function, message?: string | Error): void;
37
+ function throws(block: Function, error: RegExp | Function | Object | Error, message?: string | Error): void;
38
+ function doesNotThrow(block: Function, message?: string | Error): void;
39
+ function doesNotThrow(block: Function, error: RegExp | Function, message?: string | Error): void;
40
+
41
+ function ifError(value: any): asserts value is null | undefined;
42
+
43
+ function rejects(block: Function | Promise<any>, message?: string | Error): Promise<void>;
44
+ function rejects(block: Function | Promise<any>, error: RegExp | Function | Object | Error, message?: string | Error): Promise<void>;
45
+ function doesNotReject(block: Function | Promise<any>, message?: string | Error): Promise<void>;
46
+ function doesNotReject(block: Function | Promise<any>, error: RegExp | Function, message?: string | Error): Promise<void>;
47
+
48
+ const strict: typeof assert;
49
+ }
50
+
51
+ export = assert;
52
+ }
@@ -0,0 +1,20 @@
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.7.
2
+
3
+ // NOTE: TypeScript version-specific augmentations can be found in the following paths:
4
+ // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5
+ // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6
+ // - ~/ts3.7/base.d.ts - Definitions specific to TypeScript 3.7
7
+ // - ~/ts3.7/index.d.ts - Definitions specific to TypeScript 3.7 with assert pulled in
8
+
9
+ // Reference required types from the default lib:
10
+ /// <reference lib="es2018" />
11
+ /// <reference lib="esnext.asynciterable" />
12
+ /// <reference lib="esnext.intl" />
13
+ /// <reference lib="esnext.bigint" />
14
+
15
+ // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
16
+ // tslint:disable-next-line:no-bad-reference
17
+ /// <reference path="../ts3.2/base.d.ts" />
18
+
19
+ // TypeScript 3.7-specific augmentations:
20
+ /// <reference path="assert.d.ts" />
@@ -0,0 +1,5 @@
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.7.
2
+ // This isn't strictly needed since 3.7 has the assert module, but this way we're consistent.
3
+ // Typically type modificatons should be made in base.d.ts instead of here
4
+
5
+ /// <reference path="base.d.ts" />
node v10.17/util.d.ts CHANGED
@@ -112,6 +112,7 @@ declare module "util" {
112
112
  function isAnyArrayBuffer(object: any): boolean;
113
113
  function isArgumentsObject(object: any): object is IArguments;
114
114
  function isArrayBuffer(object: any): object is ArrayBuffer;
115
+ function isArrayBufferView(object: any): object is ArrayBufferView;
115
116
  function isAsyncFunction(object: any): boolean;
116
117
  function isBooleanObject(object: any): object is Boolean;
117
118
  function isBoxedPrimitive(object: any): object is (Number | Boolean | String | Symbol /* | Object(BigInt) | Object(Symbol) */);