@types/node 14.14.3 → 14.14.7
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 +1 -1
- node/assert.d.ts +1 -1
- node/base.d.ts +0 -1
- node/globals.d.ts +0 -1
- node/package.json +2 -2
- node/process.d.ts +2 -0
- node/repl.d.ts +10 -2
- node/ts3.4/assert.d.ts +29 -5
- node/ts3.6/base.d.ts +0 -1
- node/ts3.6/index.d.ts +0 -1
- node/zlib.d.ts +0 -1
node/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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 09 Nov 2020 19:41:27 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node/assert.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ declare module 'assert' {
|
|
|
31
31
|
report(): CallTrackerReportInformation[];
|
|
32
32
|
verify(): void;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
interface CallTrackerReportInformation {
|
|
35
35
|
message: string;
|
|
36
36
|
/** The actual number of times the function was called. */
|
|
37
37
|
actual: number;
|
node/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/globals.d.ts
CHANGED
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.14.
|
|
3
|
+
"version": "14.14.7",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -246,6 +246,6 @@
|
|
|
246
246
|
},
|
|
247
247
|
"scripts": {},
|
|
248
248
|
"dependencies": {},
|
|
249
|
-
"typesPublisherContentHash": "
|
|
249
|
+
"typesPublisherContentHash": "88e95df99ef95fe14df191e0260dc6af6db6b322ebecd22b3f94bf66f3851705",
|
|
250
250
|
"typeScriptVersion": "3.2"
|
|
251
251
|
}
|
node/process.d.ts
CHANGED
|
@@ -295,6 +295,8 @@ declare module "process" {
|
|
|
295
295
|
|
|
296
296
|
resourceUsage(): ResourceUsage;
|
|
297
297
|
|
|
298
|
+
traceDeprecation: boolean;
|
|
299
|
+
|
|
298
300
|
/* EventEmitter */
|
|
299
301
|
addListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
300
302
|
addListener(event: "disconnect", listener: DisconnectListener): this;
|
node/repl.d.ts
CHANGED
|
@@ -136,13 +136,21 @@ declare module "repl" {
|
|
|
136
136
|
*/
|
|
137
137
|
readonly context: Context;
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* @deprecated since v14.3.0 - Use `input` instead.
|
|
140
140
|
*/
|
|
141
141
|
readonly inputStream: NodeJS.ReadableStream;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* @deprecated since v14.3.0 - Use `output` instead.
|
|
144
144
|
*/
|
|
145
145
|
readonly outputStream: NodeJS.WritableStream;
|
|
146
|
+
/**
|
|
147
|
+
* The `Readable` stream from which REPL input will be read.
|
|
148
|
+
*/
|
|
149
|
+
readonly input: NodeJS.ReadableStream;
|
|
150
|
+
/**
|
|
151
|
+
* The `Writable` stream to which REPL output will be written.
|
|
152
|
+
*/
|
|
153
|
+
readonly output: NodeJS.WritableStream;
|
|
146
154
|
/**
|
|
147
155
|
* The commands registered via `replServer.defineCommand()`.
|
|
148
156
|
*/
|
node/ts3.4/assert.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare module 'assert' {
|
|
2
|
+
/** An alias of `assert.ok()`. */
|
|
2
3
|
function assert(value: any, message?: string | Error): void;
|
|
3
4
|
namespace assert {
|
|
4
5
|
class AssertionError implements Error {
|
|
@@ -11,18 +12,41 @@ declare module 'assert' {
|
|
|
11
12
|
code: 'ERR_ASSERTION';
|
|
12
13
|
|
|
13
14
|
constructor(options?: {
|
|
15
|
+
/** If provided, the error message is set to this value. */
|
|
14
16
|
message?: string;
|
|
17
|
+
/** The `actual` property on the error instance. */
|
|
15
18
|
actual?: any;
|
|
19
|
+
/** The `expected` property on the error instance. */
|
|
16
20
|
expected?: any;
|
|
21
|
+
/** The `operator` property on the error instance. */
|
|
17
22
|
operator?: string;
|
|
23
|
+
/** If provided, the generated stack trace omits frames before this function. */
|
|
18
24
|
stackStartFn?: Function;
|
|
19
25
|
});
|
|
20
26
|
}
|
|
21
27
|
|
|
28
|
+
class CallTracker {
|
|
29
|
+
calls(exact?: number): () => void;
|
|
30
|
+
calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
|
|
31
|
+
report(): CallTrackerReportInformation[];
|
|
32
|
+
verify(): void;
|
|
33
|
+
}
|
|
34
|
+
interface CallTrackerReportInformation {
|
|
35
|
+
message: string;
|
|
36
|
+
/** The actual number of times the function was called. */
|
|
37
|
+
actual: number;
|
|
38
|
+
/** The number of times the function was expected to be called. */
|
|
39
|
+
expected: number;
|
|
40
|
+
/** The name of the function that is wrapped. */
|
|
41
|
+
operator: string;
|
|
42
|
+
/** A stack trace of the function. */
|
|
43
|
+
stack: object;
|
|
44
|
+
}
|
|
45
|
+
|
|
22
46
|
type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
|
|
23
47
|
|
|
24
48
|
function fail(message?: string | Error): never;
|
|
25
|
-
/** @deprecated since v10.0.0 - use
|
|
49
|
+
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
|
|
26
50
|
function fail(
|
|
27
51
|
actual: any,
|
|
28
52
|
expected: any,
|
|
@@ -31,13 +55,13 @@ declare module 'assert' {
|
|
|
31
55
|
stackStartFn?: Function,
|
|
32
56
|
): never;
|
|
33
57
|
function ok(value: any, message?: string | Error): void;
|
|
34
|
-
/** @deprecated since v9.9.0 - use
|
|
58
|
+
/** @deprecated since v9.9.0 - use strictEqual() instead. */
|
|
35
59
|
function equal(actual: any, expected: any, message?: string | Error): void;
|
|
36
|
-
/** @deprecated since v9.9.0 - use
|
|
60
|
+
/** @deprecated since v9.9.0 - use notStrictEqual() instead. */
|
|
37
61
|
function notEqual(actual: any, expected: any, message?: string | Error): void;
|
|
38
|
-
/** @deprecated since v9.9.0 - use
|
|
62
|
+
/** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
|
|
39
63
|
function deepEqual(actual: any, expected: any, message?: string | Error): void;
|
|
40
|
-
/** @deprecated since v9.9.0 - use
|
|
64
|
+
/** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
|
|
41
65
|
function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
|
|
42
66
|
function strictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
43
67
|
function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
node/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.4/base.d.ts" />
|
|
18
17
|
|
|
19
18
|
// TypeScript 3.5-specific augmentations:
|
node/ts3.6/index.d.ts
CHANGED
node/zlib.d.ts
CHANGED