@types/node 8.10.55 → 8.10.59
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 v8/README.md +2 -2
- node v8/base.d.ts +54 -1
- node v8/index.d.ts +1 -0
- node v8/package.json +9 -4
node v8/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/v8
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 08 Nov 2019 22:57:14 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, 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>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>, Jordi Oliveras Rovira <https://github.com/j-oliveras>, and Thanik Bhongbhibhat <https://github.com/bhongy>.
|
|
16
|
+
These definitions were written by Microsoft TypeScript <https://github.com/Microsoft>, DefinitelyTyped <https://github.com/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Nikita Galkin <https://github.com/galkin>, Bruno Scheufler <https://github.com/brunoscheufler>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>, Jordi Oliveras Rovira <https://github.com/j-oliveras>, and Thanik Bhongbhibhat <https://github.com/bhongy>.
|
node v8/base.d.ts
CHANGED
|
@@ -431,6 +431,7 @@ declare namespace NodeJS {
|
|
|
431
431
|
remove(emitter: Events): void;
|
|
432
432
|
bind(cb: (err: Error, data: any) => any): any;
|
|
433
433
|
intercept(cb: (data: any) => any): any;
|
|
434
|
+
/** @deprecated since v0.11.7 - recover from failed I/O actions explicitly via error event handlers set on the domain instead. */
|
|
434
435
|
dispose(): void;
|
|
435
436
|
|
|
436
437
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
@@ -1182,6 +1183,7 @@ declare module "cluster" {
|
|
|
1182
1183
|
export class Worker extends events.EventEmitter {
|
|
1183
1184
|
id: number;
|
|
1184
1185
|
process: child.ChildProcess;
|
|
1186
|
+
/** @deprecated since v6.0.0 - use `worker.exitedAfterDisconnect` instead. */
|
|
1185
1187
|
suicide: boolean;
|
|
1186
1188
|
send(message: any, sendHandle?: any, callback?: (error: Error) => void): boolean;
|
|
1187
1189
|
kill(signal?: string): void;
|
|
@@ -1598,6 +1600,7 @@ declare module "os" {
|
|
|
1598
1600
|
export function userInfo(options?: { encoding: string }): { username: string, uid: number, gid: number, shell: any, homedir: string };
|
|
1599
1601
|
export var constants: {
|
|
1600
1602
|
UV_UDP_REUSEADDR: number,
|
|
1603
|
+
// signals: { [key in NodeJS.Signals]: number; }; @todo: change after migration to typescript 2.1
|
|
1601
1604
|
signals: {
|
|
1602
1605
|
SIGHUP: number;
|
|
1603
1606
|
SIGINT: number;
|
|
@@ -1620,6 +1623,7 @@ declare module "os" {
|
|
|
1620
1623
|
SIGCONT: number;
|
|
1621
1624
|
SIGSTOP: number;
|
|
1622
1625
|
SIGTSTP: number;
|
|
1626
|
+
SIGBREAK: number;
|
|
1623
1627
|
SIGTTIN: number;
|
|
1624
1628
|
SIGTTOU: number;
|
|
1625
1629
|
SIGURG: number;
|
|
@@ -1630,7 +1634,9 @@ declare module "os" {
|
|
|
1630
1634
|
SIGWINCH: number;
|
|
1631
1635
|
SIGIO: number;
|
|
1632
1636
|
SIGPOLL: number;
|
|
1637
|
+
SIGLOST: number;
|
|
1633
1638
|
SIGPWR: number;
|
|
1639
|
+
SIGINFO: number;
|
|
1634
1640
|
SIGSYS: number;
|
|
1635
1641
|
SIGUNUSED: number;
|
|
1636
1642
|
},
|
|
@@ -2000,6 +2006,7 @@ declare module "child_process" {
|
|
|
2000
2006
|
stdin: stream.Writable;
|
|
2001
2007
|
stdout: stream.Readable;
|
|
2002
2008
|
stderr: stream.Readable;
|
|
2009
|
+
readonly channel?: stream.Pipe | null;
|
|
2003
2010
|
stdio: StdioStreams;
|
|
2004
2011
|
killed: boolean;
|
|
2005
2012
|
pid: number;
|
|
@@ -3467,7 +3474,7 @@ declare module "fs" {
|
|
|
3467
3474
|
* @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3468
3475
|
* @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
3469
3476
|
*/
|
|
3470
|
-
export function
|
|
3477
|
+
export function __promisify__(existingPath: PathLike, newPath: PathLike): Promise<void>;
|
|
3471
3478
|
}
|
|
3472
3479
|
|
|
3473
3480
|
/**
|
|
@@ -5251,7 +5258,9 @@ declare module "crypto" {
|
|
|
5251
5258
|
crl: string | string[];
|
|
5252
5259
|
ciphers: string;
|
|
5253
5260
|
}
|
|
5261
|
+
/** @deprecated since v0.11.13 - use tls.SecureContext instead. */
|
|
5254
5262
|
export interface Credentials { context?: any; }
|
|
5263
|
+
/** @deprecated since v0.11.13 - use tls.createSecureContext instead. */
|
|
5255
5264
|
export function createCredentials(details: CredentialDetails): Credentials;
|
|
5256
5265
|
export function createHash(algorithm: string): Hash;
|
|
5257
5266
|
export function createHmac(algorithm: string, key: string | Buffer): Hmac;
|
|
@@ -5617,6 +5626,13 @@ declare module "stream" {
|
|
|
5617
5626
|
}
|
|
5618
5627
|
|
|
5619
5628
|
export class PassThrough extends Transform { }
|
|
5629
|
+
|
|
5630
|
+
interface Pipe {
|
|
5631
|
+
close(): void;
|
|
5632
|
+
hasRef(): boolean;
|
|
5633
|
+
ref(): void;
|
|
5634
|
+
unref(): void;
|
|
5635
|
+
}
|
|
5620
5636
|
}
|
|
5621
5637
|
|
|
5622
5638
|
export = internal;
|
|
@@ -5793,6 +5809,7 @@ declare module "domain" {
|
|
|
5793
5809
|
remove(emitter: events.EventEmitter): void;
|
|
5794
5810
|
bind(cb: (err: Error, data: any) => any): any;
|
|
5795
5811
|
intercept(cb: (data: any) => any): any;
|
|
5812
|
+
/** @deprecated since v0.11.7 - recover from failed I/O actions explicitly via error event handlers set on the domain instead. */
|
|
5796
5813
|
dispose(): void;
|
|
5797
5814
|
members: any[];
|
|
5798
5815
|
enter(): void;
|
|
@@ -5802,6 +5819,7 @@ declare module "domain" {
|
|
|
5802
5819
|
export function create(): Domain;
|
|
5803
5820
|
}
|
|
5804
5821
|
|
|
5822
|
+
/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
|
|
5805
5823
|
declare module "constants" {
|
|
5806
5824
|
export var E2BIG: number;
|
|
5807
5825
|
export var EACCES: number;
|
|
@@ -5937,15 +5955,25 @@ declare module "constants" {
|
|
|
5937
5955
|
export var WSA_E_NO_MORE: number;
|
|
5938
5956
|
export var WSA_E_CANCELLED: number;
|
|
5939
5957
|
export var WSAEREFUSED: number;
|
|
5958
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGHUP` instead. */
|
|
5940
5959
|
export var SIGHUP: number;
|
|
5960
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGINT` instead. */
|
|
5941
5961
|
export var SIGINT: number;
|
|
5962
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGILL` instead. */
|
|
5942
5963
|
export var SIGILL: number;
|
|
5964
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGABRT` instead. */
|
|
5943
5965
|
export var SIGABRT: number;
|
|
5966
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGFPE` instead. */
|
|
5944
5967
|
export var SIGFPE: number;
|
|
5968
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGKILL` instead. */
|
|
5945
5969
|
export var SIGKILL: number;
|
|
5970
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGSEGV` instead. */
|
|
5946
5971
|
export var SIGSEGV: number;
|
|
5972
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGTERM` instead. */
|
|
5947
5973
|
export var SIGTERM: number;
|
|
5974
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGBREAK` instead. */
|
|
5948
5975
|
export var SIGBREAK: number;
|
|
5976
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGWINCH` instead. */
|
|
5949
5977
|
export var SIGWINCH: number;
|
|
5950
5978
|
export var SSL_OP_ALL: number;
|
|
5951
5979
|
export var SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
|
|
@@ -6048,30 +6076,55 @@ declare module "constants" {
|
|
|
6048
6076
|
export var W_OK: number;
|
|
6049
6077
|
export var X_OK: number;
|
|
6050
6078
|
export var UV_UDP_REUSEADDR: number;
|
|
6079
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGQUIT` instead. */
|
|
6051
6080
|
export var SIGQUIT: number;
|
|
6081
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGTRAP` instead. */
|
|
6052
6082
|
export var SIGTRAP: number;
|
|
6083
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGIOT` instead. */
|
|
6053
6084
|
export var SIGIOT: number;
|
|
6085
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGBUS` instead. */
|
|
6054
6086
|
export var SIGBUS: number;
|
|
6087
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR1` instead. */
|
|
6055
6088
|
export var SIGUSR1: number;
|
|
6089
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR2` instead. */
|
|
6056
6090
|
export var SIGUSR2: number;
|
|
6091
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGPIPE` instead. */
|
|
6057
6092
|
export var SIGPIPE: number;
|
|
6093
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGALRM` instead. */
|
|
6058
6094
|
export var SIGALRM: number;
|
|
6095
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGCHLD` instead. */
|
|
6059
6096
|
export var SIGCHLD: number;
|
|
6097
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTKFLT` instead. */
|
|
6060
6098
|
export var SIGSTKFLT: number;
|
|
6099
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGCONT` instead. */
|
|
6061
6100
|
export var SIGCONT: number;
|
|
6101
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTOP` instead. */
|
|
6062
6102
|
export var SIGSTOP: number;
|
|
6103
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGTSTP` instead. */
|
|
6063
6104
|
export var SIGTSTP: number;
|
|
6105
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTIN` instead. */
|
|
6064
6106
|
export var SIGTTIN: number;
|
|
6107
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTOU` instead. */
|
|
6065
6108
|
export var SIGTTOU: number;
|
|
6109
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGURG` instead. */
|
|
6066
6110
|
export var SIGURG: number;
|
|
6111
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGXCPU` instead. */
|
|
6067
6112
|
export var SIGXCPU: number;
|
|
6113
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGXFSZ` instead. */
|
|
6068
6114
|
export var SIGXFSZ: number;
|
|
6115
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGVTALRM` instead. */
|
|
6069
6116
|
export var SIGVTALRM: number;
|
|
6117
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGPROF` instead. */
|
|
6070
6118
|
export var SIGPROF: number;
|
|
6119
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGIO` instead. */
|
|
6071
6120
|
export var SIGIO: number;
|
|
6121
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGPOLL` instead. */
|
|
6072
6122
|
export var SIGPOLL: number;
|
|
6123
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGPWR` instead. */
|
|
6073
6124
|
export var SIGPWR: number;
|
|
6125
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGSYS` instead. */
|
|
6074
6126
|
export var SIGSYS: number;
|
|
6127
|
+
/** @deprecated since v6.3.0 - use `os.constants.signals.SIGUNUSED` instead. */
|
|
6075
6128
|
export var SIGUNUSED: number;
|
|
6076
6129
|
export var defaultCoreCipherList: string;
|
|
6077
6130
|
export var defaultCipherList: string;
|
node v8/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
// Alberto Schiabel <https://github.com/jkomyno>
|
|
19
19
|
// Huw <https://github.com/hoo29>
|
|
20
20
|
// Nicolas Even <https://github.com/n-e>
|
|
21
|
+
// Nikita Galkin <https://github.com/galkin>
|
|
21
22
|
// Bruno Scheufler <https://github.com/brunoscheufler>
|
|
22
23
|
// Hoàng Văn Khải <https://github.com/KSXGitHub>
|
|
23
24
|
// Lishude <https://github.com/islishude>
|
node v8/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "8.10.
|
|
3
|
+
"version": "8.10.59",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -94,6 +94,11 @@
|
|
|
94
94
|
"url": "https://github.com/n-e",
|
|
95
95
|
"githubUsername": "n-e"
|
|
96
96
|
},
|
|
97
|
+
{
|
|
98
|
+
"name": "Nikita Galkin",
|
|
99
|
+
"url": "https://github.com/galkin",
|
|
100
|
+
"githubUsername": "galkin"
|
|
101
|
+
},
|
|
97
102
|
{
|
|
98
103
|
"name": "Bruno Scheufler",
|
|
99
104
|
"url": "https://github.com/brunoscheufler",
|
|
@@ -126,7 +131,7 @@
|
|
|
126
131
|
}
|
|
127
132
|
],
|
|
128
133
|
"main": "",
|
|
129
|
-
"types": "index",
|
|
134
|
+
"types": "index.d.ts",
|
|
130
135
|
"typesVersions": {
|
|
131
136
|
">=3.2.0-0": {
|
|
132
137
|
"*": [
|
|
@@ -141,6 +146,6 @@
|
|
|
141
146
|
},
|
|
142
147
|
"scripts": {},
|
|
143
148
|
"dependencies": {},
|
|
144
|
-
"typesPublisherContentHash": "
|
|
145
|
-
"typeScriptVersion": "2.
|
|
149
|
+
"typesPublisherContentHash": "be6bc3849ad26978d809520e219ed9483ee0417ccc7a26f629ff2c407d737a0d",
|
|
150
|
+
"typeScriptVersion": "2.8"
|
|
146
151
|
}
|