@types/node 12.19.13 → 12.19.14
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/domain.d.ts +6 -6
- node v12.19/events.d.ts +26 -30
- node v12.19/package.json +2 -2
- node v12.19/stream.d.ts +3 -3
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, 14 Jan 2021 21:29:49 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/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.14",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -226,6 +226,6 @@
|
|
|
226
226
|
},
|
|
227
227
|
"scripts": {},
|
|
228
228
|
"dependencies": {},
|
|
229
|
-
"typesPublisherContentHash": "
|
|
229
|
+
"typesPublisherContentHash": "284f8d9969ff88a17b5e9c0a7936399fe8db8ef90df2cb13b2a65a38ca240c22",
|
|
230
230
|
"typeScriptVersion": "3.4"
|
|
231
231
|
}
|
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
|
|