@types/node 12.19.12 → 12.19.16
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/dns.d.ts +6 -0
- node v12.19/domain.d.ts +6 -6
- node v12.19/events.d.ts +26 -30
- node v12.19/package.json +5 -5
- node v12.19/stream.d.ts +3 -3
- node v12.19/{ts3.3 → ts3.4}/assert.d.ts +0 -0
- node v12.19/{ts3.3 → ts3.4}/base.d.ts +0 -0
- node v12.19/{ts3.3 → ts3.4}/globals.global.d.ts +0 -0
- node v12.19/{ts3.3 → ts3.4}/index.d.ts +0 -0
- node v12.19/ts3.6/base.d.ts +1 -1
- node v12.19/ts3.6/index.d.ts +1 -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, 04 Feb 2021 08:30:31 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/dns.d.ts
CHANGED
|
@@ -271,7 +271,12 @@ declare module "dns" {
|
|
|
271
271
|
const ADDRGETNETWORKPARAMS: string;
|
|
272
272
|
const CANCELLED: string;
|
|
273
273
|
|
|
274
|
+
interface ResolverOptions {
|
|
275
|
+
timeout?: number;
|
|
276
|
+
}
|
|
277
|
+
|
|
274
278
|
class Resolver {
|
|
279
|
+
constructor(options?: ResolverOptions);
|
|
275
280
|
getServers: typeof getServers;
|
|
276
281
|
setServers: typeof setServers;
|
|
277
282
|
resolve: typeof resolve;
|
|
@@ -346,6 +351,7 @@ declare module "dns" {
|
|
|
346
351
|
function setServers(servers: ReadonlyArray<string>): void;
|
|
347
352
|
|
|
348
353
|
class Resolver {
|
|
354
|
+
constructor(options?: ResolverOptions);
|
|
349
355
|
getServers: typeof getServers;
|
|
350
356
|
resolve: typeof resolve;
|
|
351
357
|
resolve4: typeof resolve4;
|
node v12.19/domain.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import
|
|
1
|
+
declare module 'domain' {
|
|
2
|
+
import EventEmitter = require('events');
|
|
3
3
|
|
|
4
|
-
class Domain extends
|
|
4
|
+
class Domain extends EventEmitter implements NodeJS.Domain {
|
|
5
5
|
run<T>(fn: (...args: any[]) => T, ...args: any[]): T;
|
|
6
|
-
add(emitter:
|
|
7
|
-
remove(emitter:
|
|
6
|
+
add(emitter: EventEmitter | NodeJS.Timer): void;
|
|
7
|
+
remove(emitter: EventEmitter | NodeJS.Timer): void;
|
|
8
8
|
bind<T extends Function>(cb: T): T;
|
|
9
9
|
intercept<T extends Function>(cb: T): T;
|
|
10
|
-
members: Array<
|
|
10
|
+
members: Array<EventEmitter | NodeJS.Timer>;
|
|
11
11
|
enter(): void;
|
|
12
12
|
exit(): void;
|
|
13
13
|
}
|
node v12.19/events.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
class internal extends NodeJS.EventEmitter { }
|
|
3
|
-
|
|
1
|
+
declare module 'events' {
|
|
4
2
|
interface NodeEventTarget {
|
|
5
3
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
6
4
|
}
|
|
@@ -9,9 +7,15 @@ declare module "events" {
|
|
|
9
7
|
addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any;
|
|
10
8
|
}
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
class EventEmitter extends NodeJS.EventEmitter {
|
|
11
|
+
constructor();
|
|
12
|
+
|
|
13
|
+
static once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>;
|
|
14
|
+
static once(emitter: DOMEventTarget, event: string): Promise<any[]>;
|
|
15
|
+
static on(emitter: NodeJS.EventEmitter, event: string): AsyncIterableIterator<any>;
|
|
16
|
+
|
|
17
|
+
/** @deprecated since v4.0.0 */
|
|
18
|
+
static listenerCount(emitter: NodeJS.EventEmitter, event: string | symbol): number;
|
|
15
19
|
|
|
16
20
|
/**
|
|
17
21
|
* This symbol shall be used to install a listener for only monitoring `'error'`
|
|
@@ -22,30 +26,22 @@ declare module "events" {
|
|
|
22
26
|
* `'error'` event is emitted, therefore the process will still crash if no
|
|
23
27
|
* regular `'error'` listener is installed.
|
|
24
28
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
setMaxListeners(n: number): this;
|
|
41
|
-
getMaxListeners(): number;
|
|
42
|
-
listeners(event: string | symbol): Function[];
|
|
43
|
-
rawListeners(event: string | symbol): Function[];
|
|
44
|
-
emit(event: string | symbol, ...args: any[]): boolean;
|
|
45
|
-
eventNames(): Array<string | symbol>;
|
|
46
|
-
listenerCount(type: string | symbol): number;
|
|
47
|
-
}
|
|
29
|
+
static readonly errorMonitor: unique symbol;
|
|
30
|
+
static readonly captureRejectionSymbol: unique symbol;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Sets or gets the default captureRejection value for all emitters.
|
|
34
|
+
*/
|
|
35
|
+
// TODO: These should be described using static getter/setter pairs:
|
|
36
|
+
static captureRejections: boolean;
|
|
37
|
+
static defaultMaxListeners: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
import internal = require('events');
|
|
41
|
+
namespace EventEmitter {
|
|
42
|
+
// Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4
|
|
43
|
+
export { internal as EventEmitter };
|
|
48
44
|
}
|
|
49
45
|
|
|
50
|
-
export =
|
|
46
|
+
export = EventEmitter;
|
|
51
47
|
}
|
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.16",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -213,9 +213,9 @@
|
|
|
213
213
|
"main": "",
|
|
214
214
|
"types": "index.d.ts",
|
|
215
215
|
"typesVersions": {
|
|
216
|
-
"<=3.
|
|
216
|
+
"<=3.4": {
|
|
217
217
|
"*": [
|
|
218
|
-
"ts3.
|
|
218
|
+
"ts3.4/*"
|
|
219
219
|
]
|
|
220
220
|
},
|
|
221
221
|
"<=3.6": {
|
|
@@ -231,6 +231,6 @@
|
|
|
231
231
|
},
|
|
232
232
|
"scripts": {},
|
|
233
233
|
"dependencies": {},
|
|
234
|
-
"typesPublisherContentHash": "
|
|
235
|
-
"typeScriptVersion": "3.
|
|
234
|
+
"typesPublisherContentHash": "ec749c29c43a62c16fa3f02dadfb29e2e4640cf7d37b9346b9493fc5b3038b8f",
|
|
235
|
+
"typeScriptVersion": "3.4"
|
|
236
236
|
}
|
node v12.19/stream.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
import
|
|
1
|
+
declare module 'stream' {
|
|
2
|
+
import EventEmitter = require('events');
|
|
3
3
|
|
|
4
|
-
class internal extends
|
|
4
|
+
class internal extends EventEmitter {
|
|
5
5
|
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
|
|
6
6
|
}
|
|
7
7
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
node v12.19/ts3.6/base.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
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
|
-
/// <reference path="../ts3.
|
|
16
|
+
/// <reference path="../ts3.4/base.d.ts" />
|
|
17
17
|
|
|
18
18
|
// TypeScript 3.5-specific augmentations:
|
|
19
19
|
/// <reference path="../globals.global.d.ts" />
|
node v12.19/ts3.6/index.d.ts
CHANGED