@types/node 12.19.2 → 12.19.6
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.19/README.md +1 -1
- node v12.19/assert.d.ts +14 -10
- node v12.19/base.d.ts +0 -1
- node v12.19/globals.d.ts +3 -3
- node v12.19/package.json +2 -2
- node v12.19/ts3.3/assert.d.ts +18 -0
- node v12.19/ts3.6/base.d.ts +0 -1
- node v12.19/ts3.6/index.d.ts +0 -1
node v12.19/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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 19 Nov 2020 21:27:29 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
|
|
node v12.19/assert.d.ts
CHANGED
|
@@ -82,26 +82,30 @@ declare module 'assert' {
|
|
|
82
82
|
|
|
83
83
|
const strict: Omit<
|
|
84
84
|
typeof assert,
|
|
85
|
-
| 'strict'
|
|
86
|
-
| 'deepEqual'
|
|
87
|
-
| 'notDeepEqual'
|
|
88
85
|
| 'equal'
|
|
89
86
|
| 'notEqual'
|
|
87
|
+
| 'deepEqual'
|
|
88
|
+
| 'notDeepEqual'
|
|
90
89
|
| 'ok'
|
|
91
90
|
| 'strictEqual'
|
|
92
91
|
| 'deepStrictEqual'
|
|
93
92
|
| 'ifError'
|
|
93
|
+
| 'strict'
|
|
94
94
|
> & {
|
|
95
95
|
(value: any, message?: string | Error): asserts value;
|
|
96
|
-
strict: typeof strict;
|
|
97
|
-
deepEqual: typeof deepStrictEqual;
|
|
98
|
-
notDeepEqual: typeof notDeepStrictEqual;
|
|
99
96
|
equal: typeof strictEqual;
|
|
100
97
|
notEqual: typeof notStrictEqual;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
deepEqual: typeof deepStrictEqual;
|
|
99
|
+
notDeepEqual: typeof notDeepStrictEqual;
|
|
100
|
+
|
|
101
|
+
// Mapped types and assertion functions are incompatible?
|
|
102
|
+
// TS2775: Assertions require every name in the call target
|
|
103
|
+
// to be declared with an explicit type annotation.
|
|
104
|
+
ok: typeof ok;
|
|
105
|
+
strictEqual: typeof strictEqual;
|
|
106
|
+
deepStrictEqual: typeof deepStrictEqual;
|
|
107
|
+
ifError: typeof ifError;
|
|
108
|
+
strict: typeof strict;
|
|
105
109
|
};
|
|
106
110
|
}
|
|
107
111
|
|
node v12.19/base.d.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
/// <reference lib="esnext.bigint" />
|
|
14
14
|
|
|
15
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
16
|
/// <reference path="ts3.6/base.d.ts" />
|
|
18
17
|
|
|
19
18
|
// TypeScript 3.7-specific augmentations:
|
node v12.19/globals.d.ts
CHANGED
|
@@ -193,7 +193,6 @@ declare function queueMicrotask(callback: () => void): void;
|
|
|
193
193
|
|
|
194
194
|
// TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version.
|
|
195
195
|
interface NodeRequireFunction {
|
|
196
|
-
/* tslint:disable-next-line:callable-types */
|
|
197
196
|
(id: string): any;
|
|
198
197
|
}
|
|
199
198
|
|
|
@@ -231,7 +230,8 @@ interface NodeModule {
|
|
|
231
230
|
id: string;
|
|
232
231
|
filename: string;
|
|
233
232
|
loaded: boolean;
|
|
234
|
-
|
|
233
|
+
/** @deprecated since 12.19.0 Please use `require.main` and `module.children` instead. */
|
|
234
|
+
parent: NodeModule | null | undefined;
|
|
235
235
|
children: NodeModule[];
|
|
236
236
|
/**
|
|
237
237
|
* @since 11.14.0
|
|
@@ -865,7 +865,7 @@ declare namespace NodeJS {
|
|
|
865
865
|
argv0: string;
|
|
866
866
|
execArgv: string[];
|
|
867
867
|
execPath: string;
|
|
868
|
-
abort():
|
|
868
|
+
abort(): never;
|
|
869
869
|
chdir(directory: string): void;
|
|
870
870
|
cwd(): string;
|
|
871
871
|
debugPort: number;
|
node v12.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.19.
|
|
3
|
+
"version": "12.19.6",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -231,6 +231,6 @@
|
|
|
231
231
|
},
|
|
232
232
|
"scripts": {},
|
|
233
233
|
"dependencies": {},
|
|
234
|
-
"typesPublisherContentHash": "
|
|
234
|
+
"typesPublisherContentHash": "fd63a2550c0cabff86e8d1c4167ae4de04d4125adbc506e9409b01335eb5d227",
|
|
235
235
|
"typeScriptVersion": "3.2"
|
|
236
236
|
}
|
node v12.19/ts3.3/assert.d.ts
CHANGED
|
@@ -19,6 +19,24 @@ declare module 'assert' {
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
class CallTracker {
|
|
23
|
+
calls(exact?: number): () => void;
|
|
24
|
+
calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
|
|
25
|
+
report(): CallTrackerReportInformation[];
|
|
26
|
+
verify(): void;
|
|
27
|
+
}
|
|
28
|
+
interface CallTrackerReportInformation {
|
|
29
|
+
message: string;
|
|
30
|
+
/** The actual number of times the function was called. */
|
|
31
|
+
actual: number;
|
|
32
|
+
/** The number of times the function was expected to be called. */
|
|
33
|
+
expected: number;
|
|
34
|
+
/** The name of the function that is wrapped. */
|
|
35
|
+
operator: string;
|
|
36
|
+
/** A stack trace of the function. */
|
|
37
|
+
stack: object;
|
|
38
|
+
}
|
|
39
|
+
|
|
22
40
|
function fail(message?: string | Error): never;
|
|
23
41
|
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
|
|
24
42
|
function fail(
|
node v12.19/ts3.6/base.d.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
/// <reference lib="esnext.bigint" />
|
|
14
14
|
|
|
15
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
16
|
/// <reference path="../ts3.3/base.d.ts" />
|
|
18
17
|
|
|
19
18
|
// TypeScript 3.5-specific augmentations:
|