@types/node 12.7.7 → 12.7.11
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 +2 -2
- node/globals.d.ts +0 -25
- node/index.d.ts +0 -1
- node/package.json +2 -7
- node/process.d.ts +12 -0
- node/stream.d.ts +5 -0
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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: Thu, 03 Oct 2019 20:33:32 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, queueMicrotask, require, setImmediate, setInterval, setTimeout
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Alberto Schiabel <https://github.com/jkomyno>, Alexander T. <https://github.com/a-tarasyuk>, Alvis HT Tang <https://github.com/alvis>, Andrew Makarov <https://github.com/r3nya>, Benjamin Toueg <https://github.com/btoueg>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, David Junger <https://github.com/touffy>, Deividas Bakanas <https://github.com/DeividasBakanas>, Eugene Y. Q. Shen <https://github.com/eyqs>, Flarna <https://github.com/Flarna>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Huw <https://github.com/hoo29>, Kelvin Jin <https://github.com/kjin>, Klaus Meinhardt <https://github.com/ajafff>, Lishude <https://github.com/islishude>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>,
|
|
16
|
+
These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Alberto Schiabel <https://github.com/jkomyno>, Alexander T. <https://github.com/a-tarasyuk>, Alvis HT Tang <https://github.com/alvis>, Andrew Makarov <https://github.com/r3nya>, Benjamin Toueg <https://github.com/btoueg>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, David Junger <https://github.com/touffy>, Deividas Bakanas <https://github.com/DeividasBakanas>, Eugene Y. Q. Shen <https://github.com/eyqs>, Flarna <https://github.com/Flarna>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Huw <https://github.com/hoo29>, Kelvin Jin <https://github.com/kjin>, Klaus Meinhardt <https://github.com/ajafff>, Lishude <https://github.com/islishude>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, Mohsen Azimi <https://github.com/mohsen1>, Nicolas Even <https://github.com/n-e>, Nicolas Voigt <https://github.com/octo-sniffle>, Parambir Singh <https://github.com/parambirs>, Sebastian Silbermann <https://github.com/eps1lon>, Simon Schick <https://github.com/SimonSchick>, Thomas den Hollander <https://github.com/ThomasdenH>, Wilco Bakker <https://github.com/WilcoBakker>, wwwy3y3 <https://github.com/wwwy3y3>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Samuel Ainsworth <https://github.com/samuela>, Kyle Uehlein <https://github.com/kuehlein>, Jordi Oliveras Rovira <https://github.com/j-oliveras>, Thanik Bhongbhibhat <https://github.com/bhongy>, Marcin Kopacz <https://github.com/chyzwar>, Trivikram Kamat <https://github.com/trivikr>, and Minh Son Nguyen <https://github.com/nguymin4>.
|
node/globals.d.ts
CHANGED
|
@@ -737,31 +737,6 @@ declare namespace NodeJS {
|
|
|
737
737
|
[key: string]: string | undefined;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
interface WriteStream extends Socket {
|
|
741
|
-
readonly writableFinished: boolean;
|
|
742
|
-
readonly writableHighWaterMark: number;
|
|
743
|
-
readonly writableLength: number;
|
|
744
|
-
columns?: number;
|
|
745
|
-
rows?: number;
|
|
746
|
-
_write(chunk: any, encoding: string, callback: (err?: null | Error) => void): void;
|
|
747
|
-
_destroy(err: Error | null, callback: (err?: null | Error) => void): void;
|
|
748
|
-
_final(callback: (err?: null | Error) => void): void;
|
|
749
|
-
setDefaultEncoding(encoding: string): this;
|
|
750
|
-
cork(): void;
|
|
751
|
-
uncork(): void;
|
|
752
|
-
destroy(error?: Error): void;
|
|
753
|
-
}
|
|
754
|
-
interface ReadStream extends Socket {
|
|
755
|
-
readonly readableHighWaterMark: number;
|
|
756
|
-
readonly readableLength: number;
|
|
757
|
-
isRaw?: boolean;
|
|
758
|
-
setRawMode?(mode: boolean): void;
|
|
759
|
-
_read(size: number): void;
|
|
760
|
-
_destroy(err: Error | null, callback: (err?: null | Error) => void): void;
|
|
761
|
-
push(chunk: any, encoding?: string): boolean;
|
|
762
|
-
destroy(error?: Error): void;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
740
|
interface HRTime {
|
|
766
741
|
(time?: [number, number]): [number, number];
|
|
767
742
|
}
|
node/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
// Klaus Meinhardt <https://github.com/ajafff>
|
|
22
22
|
// Lishude <https://github.com/islishude>
|
|
23
23
|
// Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
|
|
24
|
-
// Matthieu Sieben <https://github.com/matthieusieben>
|
|
25
24
|
// Mohsen Azimi <https://github.com/mohsen1>
|
|
26
25
|
// Nicolas Even <https://github.com/n-e>
|
|
27
26
|
// Nicolas Voigt <https://github.com/octo-sniffle>
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.7.
|
|
3
|
+
"version": "12.7.11",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -109,11 +109,6 @@
|
|
|
109
109
|
"url": "https://github.com/mwiktorczyk",
|
|
110
110
|
"githubUsername": "mwiktorczyk"
|
|
111
111
|
},
|
|
112
|
-
{
|
|
113
|
-
"name": "Matthieu Sieben",
|
|
114
|
-
"url": "https://github.com/matthieusieben",
|
|
115
|
-
"githubUsername": "matthieusieben"
|
|
116
|
-
},
|
|
117
112
|
{
|
|
118
113
|
"name": "Mohsen Azimi",
|
|
119
114
|
"url": "https://github.com/mohsen1",
|
|
@@ -216,6 +211,6 @@
|
|
|
216
211
|
},
|
|
217
212
|
"scripts": {},
|
|
218
213
|
"dependencies": {},
|
|
219
|
-
"typesPublisherContentHash": "
|
|
214
|
+
"typesPublisherContentHash": "2ad0572bebbded00c170200439c2078a7151ff0bf2970c6cd3bd91cdc0cbd5dc",
|
|
220
215
|
"typeScriptVersion": "2.0"
|
|
221
216
|
}
|
node/process.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
declare module "process" {
|
|
2
|
+
import * as tty from "tty";
|
|
3
|
+
|
|
4
|
+
global {
|
|
5
|
+
namespace NodeJS {
|
|
6
|
+
// this namespace merge is here because these are specifically used
|
|
7
|
+
// as the type for process.stdin, process.stdout, and process.stderr.
|
|
8
|
+
// they can't live in tty.d.ts because we need to disambiguate the imported name.
|
|
9
|
+
interface ReadStream extends tty.ReadStream {}
|
|
10
|
+
interface WriteStream extends tty.WriteStream {}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
2
14
|
export = process;
|
|
3
15
|
}
|
node/stream.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ declare module "stream" {
|
|
|
26
26
|
readable: boolean;
|
|
27
27
|
readonly readableHighWaterMark: number;
|
|
28
28
|
readonly readableLength: number;
|
|
29
|
+
readonly readableObjectMode: boolean;
|
|
30
|
+
destroyed: boolean;
|
|
29
31
|
constructor(opts?: ReadableOptions);
|
|
30
32
|
_read(size: number): void;
|
|
31
33
|
read(size?: number): any;
|
|
@@ -119,6 +121,8 @@ declare module "stream" {
|
|
|
119
121
|
readonly writableFinished: boolean;
|
|
120
122
|
readonly writableHighWaterMark: number;
|
|
121
123
|
readonly writableLength: number;
|
|
124
|
+
readonly writableObjectMode: boolean;
|
|
125
|
+
destroyed: boolean;
|
|
122
126
|
constructor(opts?: WritableOptions);
|
|
123
127
|
_write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
|
|
124
128
|
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
|
|
@@ -218,6 +222,7 @@ declare module "stream" {
|
|
|
218
222
|
readonly writableFinished: boolean;
|
|
219
223
|
readonly writableHighWaterMark: number;
|
|
220
224
|
readonly writableLength: number;
|
|
225
|
+
readonly writableObjectMode: boolean;
|
|
221
226
|
constructor(opts?: DuplexOptions);
|
|
222
227
|
_write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
|
|
223
228
|
_writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
|