@types/node 10.17.48 → 10.17.49
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 +1 -1
- node v10.17/assert.d.ts +14 -10
- node v10.17/package.json +2 -2
- node v10.17/ts3.6/assert.d.ts +14 -10
node v10.17/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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:
|
|
11
|
+
* Last updated: Sat, 12 Dec 2020 17:18:35 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v10.17/assert.d.ts
CHANGED
|
@@ -15,10 +15,13 @@ declare module 'assert' {
|
|
|
15
15
|
actual?: any;
|
|
16
16
|
expected?: any;
|
|
17
17
|
operator?: string;
|
|
18
|
+
// tslint:disable-next-line:ban-types
|
|
18
19
|
stackStartFn?: Function;
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|
|
23
|
+
type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
|
|
24
|
+
|
|
22
25
|
function fail(message?: string | Error): never;
|
|
23
26
|
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
|
|
24
27
|
function fail(
|
|
@@ -26,6 +29,7 @@ declare module 'assert' {
|
|
|
26
29
|
expected: any,
|
|
27
30
|
message?: string | Error,
|
|
28
31
|
operator?: string,
|
|
32
|
+
// tslint:disable-next-line:ban-types
|
|
29
33
|
stackStartFn?: Function,
|
|
30
34
|
): never;
|
|
31
35
|
function ok(value: any, message?: string | Error): asserts value;
|
|
@@ -42,23 +46,23 @@ declare module 'assert' {
|
|
|
42
46
|
function deepStrictEqual<T>(actual: any, expected: T, message?: string | Error): asserts actual is T;
|
|
43
47
|
function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
44
48
|
|
|
45
|
-
function throws(block:
|
|
46
|
-
function throws(block:
|
|
47
|
-
function doesNotThrow(block:
|
|
48
|
-
function doesNotThrow(block:
|
|
49
|
+
function throws(block: () => any, message?: string | Error): void;
|
|
50
|
+
function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
|
51
|
+
function doesNotThrow(block: () => any, message?: string | Error): void;
|
|
52
|
+
function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
|
49
53
|
|
|
50
54
|
function ifError(value: any): asserts value is null | undefined;
|
|
51
55
|
|
|
52
|
-
function rejects(block:
|
|
56
|
+
function rejects(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
|
|
53
57
|
function rejects(
|
|
54
|
-
block:
|
|
55
|
-
error:
|
|
58
|
+
block: (() => Promise<any>) | Promise<any>,
|
|
59
|
+
error: AssertPredicate,
|
|
56
60
|
message?: string | Error,
|
|
57
61
|
): Promise<void>;
|
|
58
|
-
function doesNotReject(block:
|
|
62
|
+
function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
|
|
59
63
|
function doesNotReject(
|
|
60
|
-
block:
|
|
61
|
-
error:
|
|
64
|
+
block: (() => Promise<any>) | Promise<any>,
|
|
65
|
+
error: AssertPredicate,
|
|
62
66
|
message?: string | Error,
|
|
63
67
|
): Promise<void>;
|
|
64
68
|
|
node v10.17/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.17.
|
|
3
|
+
"version": "10.17.49",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -196,6 +196,6 @@
|
|
|
196
196
|
},
|
|
197
197
|
"scripts": {},
|
|
198
198
|
"dependencies": {},
|
|
199
|
-
"typesPublisherContentHash": "
|
|
199
|
+
"typesPublisherContentHash": "eb547bb67b23d65a49166c1c05f08e07d22c03e60c5e463c48d4a3fada31f165",
|
|
200
200
|
"typeScriptVersion": "3.3"
|
|
201
201
|
}
|
node v10.17/ts3.6/assert.d.ts
CHANGED
|
@@ -15,10 +15,13 @@ declare module 'assert' {
|
|
|
15
15
|
actual?: any;
|
|
16
16
|
expected?: any;
|
|
17
17
|
operator?: string;
|
|
18
|
+
// tslint:disable-next-line:ban-types
|
|
18
19
|
stackStartFn?: Function;
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
|
|
23
|
+
type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
|
|
24
|
+
|
|
22
25
|
function fail(message?: string | Error): never;
|
|
23
26
|
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
|
|
24
27
|
function fail(
|
|
@@ -26,6 +29,7 @@ declare module 'assert' {
|
|
|
26
29
|
expected: any,
|
|
27
30
|
message?: string | Error,
|
|
28
31
|
operator?: string,
|
|
32
|
+
// tslint:disable-next-line:ban-types
|
|
29
33
|
stackStartFn?: Function,
|
|
30
34
|
): never;
|
|
31
35
|
function ok(value: any, message?: string | Error): void;
|
|
@@ -42,23 +46,23 @@ declare module 'assert' {
|
|
|
42
46
|
function deepStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
43
47
|
function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
44
48
|
|
|
45
|
-
function throws(block:
|
|
46
|
-
function throws(block:
|
|
47
|
-
function doesNotThrow(block:
|
|
48
|
-
function doesNotThrow(block:
|
|
49
|
+
function throws(block: () => any, message?: string | Error): void;
|
|
50
|
+
function throws(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
|
51
|
+
function doesNotThrow(block: () => any, message?: string | Error): void;
|
|
52
|
+
function doesNotThrow(block: () => any, error: AssertPredicate, message?: string | Error): void;
|
|
49
53
|
|
|
50
54
|
function ifError(value: any): void;
|
|
51
55
|
|
|
52
|
-
function rejects(block:
|
|
56
|
+
function rejects(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
|
|
53
57
|
function rejects(
|
|
54
|
-
block:
|
|
55
|
-
error:
|
|
58
|
+
block: (() => Promise<any>) | Promise<any>,
|
|
59
|
+
error: AssertPredicate,
|
|
56
60
|
message?: string | Error,
|
|
57
61
|
): Promise<void>;
|
|
58
|
-
function doesNotReject(block:
|
|
62
|
+
function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
|
|
59
63
|
function doesNotReject(
|
|
60
|
-
block:
|
|
61
|
-
error:
|
|
64
|
+
block: (() => Promise<any>) | Promise<any>,
|
|
65
|
+
error: AssertPredicate,
|
|
62
66
|
message?: string | Error,
|
|
63
67
|
): Promise<void>;
|
|
64
68
|
|