@types/node 13.13.39 → 13.13.40
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 v13.13/README.md +1 -1
- node v13.13/domain.d.ts +2 -2
- node v13.13/events.d.ts +22 -17
- node v13.13/package.json +3 -3
- node v13.13/stream.d.ts +3 -3
node v13.13/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/v13.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 14 Jan 2021 21:29:41 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 v13.13/domain.d.ts
CHANGED
node v13.13/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module
|
|
1
|
+
declare module 'events' {
|
|
2
2
|
interface EventEmitterOptions {
|
|
3
3
|
/**
|
|
4
4
|
* Enables automatic capturing of promise rejection.
|
|
@@ -14,11 +14,16 @@ declare module "events" {
|
|
|
14
14
|
addEventListener(event: string, listener: (...args: any[]) => void, opts?: { once: boolean }): any;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
interface EventEmitter extends NodeJS.EventEmitter {}
|
|
18
|
+
class EventEmitter {
|
|
19
|
+
constructor(options?: EventEmitterOptions);
|
|
20
|
+
|
|
21
|
+
static once(emitter: NodeEventTarget, event: string | symbol): Promise<any[]>;
|
|
22
|
+
static once(emitter: DOMEventTarget, event: string): Promise<any[]>;
|
|
23
|
+
static on(emitter: NodeJS.EventEmitter, event: string): AsyncIterableIterator<any>;
|
|
24
|
+
|
|
25
|
+
/** @deprecated since v4.0.0 */
|
|
26
|
+
static listenerCount(emitter: NodeJS.EventEmitter, event: string | symbol): number;
|
|
22
27
|
|
|
23
28
|
/**
|
|
24
29
|
* This symbol shall be used to install a listener for only monitoring `'error'`
|
|
@@ -29,21 +34,21 @@ declare module "events" {
|
|
|
29
34
|
* `'error'` event is emitted, therefore the process will still crash if no
|
|
30
35
|
* regular `'error'` listener is installed.
|
|
31
36
|
*/
|
|
32
|
-
|
|
37
|
+
static readonly errorMonitor: unique symbol;
|
|
38
|
+
static readonly captureRejectionSymbol: unique symbol;
|
|
39
|
+
|
|
33
40
|
/**
|
|
34
41
|
* Sets or gets the default captureRejection value for all emitters.
|
|
35
42
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
// TODO: These should be described using static getter/setter pairs:
|
|
44
|
+
static captureRejections: boolean;
|
|
45
|
+
static defaultMaxListeners: number;
|
|
46
|
+
}
|
|
40
47
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
static defaultMaxListeners: number;
|
|
46
|
-
}
|
|
48
|
+
import internal = require('events');
|
|
49
|
+
namespace EventEmitter {
|
|
50
|
+
// Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4
|
|
51
|
+
export { internal as EventEmitter };
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
export = EventEmitter;
|
node v13.13/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "13.13.
|
|
3
|
+
"version": "13.13.40",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -241,6 +241,6 @@
|
|
|
241
241
|
},
|
|
242
242
|
"scripts": {},
|
|
243
243
|
"dependencies": {},
|
|
244
|
-
"typesPublisherContentHash": "
|
|
245
|
-
"typeScriptVersion": "3.
|
|
244
|
+
"typesPublisherContentHash": "28211cac4575355180578c3ea8d53557812de53a6bbbd326d30291a0d392889b",
|
|
245
|
+
"typeScriptVersion": "3.4"
|
|
246
246
|
}
|
node v13.13/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
|
|