@types/node 6.0.44 → 6.0.48

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.
Files changed (4) hide show
  1. node/README.md +3 -3
  2. node/index.d.ts +347 -21
  3. node/package.json +2 -2
  4. node/types-metadata.json +14 -5
node/README.md CHANGED
@@ -8,10 +8,10 @@ This package contains type definitions for Node.js v6.x (http://nodejs.org/).
8
8
  Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/node
9
9
 
10
10
  Additional Details
11
- * Last updated: Thu, 06 Oct 2016 05:20:49 GMT
12
- * File structure: MultipleModules
11
+ * Last updated: Tue, 15 Nov 2016 15:12:38 GMT
12
+ * File structure: ModuleAugmentation
13
13
  * Library Dependencies: none
14
- * Module Dependencies: none
14
+ * Module Dependencies: child_process, crypto, events, http, net, readline, stream, tls
15
15
  * Global values: Buffer, NodeJS, SlowBuffer, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
16
16
 
17
17
  # Credits
node/index.d.ts CHANGED
@@ -67,7 +67,7 @@ interface NodeRequire extends NodeRequireFunction {
67
67
  resolve(id: string): string;
68
68
  cache: any;
69
69
  extensions: any;
70
- main: any;
70
+ main: NodeModule;
71
71
  }
72
72
 
73
73
  declare var require: NodeRequire;
@@ -78,8 +78,8 @@ interface NodeModule {
78
78
  id: string;
79
79
  filename: string;
80
80
  loaded: boolean;
81
- parent: any;
82
- children: any[];
81
+ parent: NodeModule;
82
+ children: NodeModule[];
83
83
  }
84
84
 
85
85
  declare var module: NodeModule;
@@ -253,7 +253,7 @@ declare namespace NodeJS {
253
253
  }
254
254
 
255
255
  export interface ErrnoException extends Error {
256
- errno?: string;
256
+ errno?: number;
257
257
  code?: string;
258
258
  path?: string;
259
259
  syscall?: string;
@@ -344,6 +344,7 @@ declare namespace NodeJS {
344
344
  stderr: WritableStream;
345
345
  stdin: ReadableStream;
346
346
  argv: string[];
347
+ argv0: string;
347
348
  execArgv: string[];
348
349
  execPath: string;
349
350
  abort(): void;
@@ -391,11 +392,12 @@ declare namespace NodeJS {
391
392
  title: string;
392
393
  arch: string;
393
394
  platform: string;
395
+ mainModule?: NodeModule;
394
396
  memoryUsage(): MemoryUsage;
395
397
  nextTick(callback: Function, ...args: any[]): void;
396
398
  umask(mask?: number): number;
397
399
  uptime(): number;
398
- hrtime(time?: number[]): number[];
400
+ hrtime(time?: [number, number]): [number, number];
399
401
  domain: Domain;
400
402
 
401
403
  // Worker
@@ -1341,7 +1343,37 @@ declare module "repl" {
1341
1343
 
1342
1344
  export interface REPLServer extends readline.ReadLine {
1343
1345
  defineCommand(keyword: string, cmd: Function | { help: string, action: Function }): void;
1344
- displayPrompt(preserveCursor?: boolean): void
1346
+ displayPrompt(preserveCursor?: boolean): void;
1347
+
1348
+ /**
1349
+ * events.EventEmitter
1350
+ * 1. exit
1351
+ * 2. reset
1352
+ **/
1353
+
1354
+ addListener(event: string, listener: Function): this;
1355
+ addListener(event: "exit", listener: () => void): this;
1356
+ addListener(event: "reset", listener: Function): this;
1357
+
1358
+ emit(event: string, ...args: any[]): boolean;
1359
+ emit(event: "exit"): boolean;
1360
+ emit(event: "reset", context: any): boolean;
1361
+
1362
+ on(event: string, listener: Function): this;
1363
+ on(event: "exit", listener: () => void): this;
1364
+ on(event: "reset", listener: Function): this;
1365
+
1366
+ once(event: string, listener: Function): this;
1367
+ once(event: "exit", listener: () => void): this;
1368
+ once(event: "reset", listener: Function): this;
1369
+
1370
+ prependListener(event: string, listener: Function): this;
1371
+ prependListener(event: "exit", listener: () => void): this;
1372
+ prependListener(event: "reset", listener: Function): this;
1373
+
1374
+ prependOnceListener(event: string, listener: Function): this;
1375
+ prependOnceListener(event: "exit", listener: () => void): this;
1376
+ prependOnceListener(event: "reset", listener: Function): this;
1345
1377
  }
1346
1378
 
1347
1379
  export function start(options: ReplOptions): REPLServer;
@@ -1367,6 +1399,71 @@ declare module "readline" {
1367
1399
  resume(): ReadLine;
1368
1400
  close(): void;
1369
1401
  write(data: string | Buffer, key?: Key): void;
1402
+
1403
+ /**
1404
+ * events.EventEmitter
1405
+ * 1. close
1406
+ * 2. line
1407
+ * 3. pause
1408
+ * 4. resume
1409
+ * 5. SIGCONT
1410
+ * 6. SIGINT
1411
+ * 7. SIGTSTP
1412
+ **/
1413
+
1414
+ addListener(event: string, listener: Function): this;
1415
+ addListener(event: "close", listener: () => void): this;
1416
+ addListener(event: "line", listener: (input: any) => void): this;
1417
+ addListener(event: "pause", listener: () => void): this;
1418
+ addListener(event: "resume", listener: () => void): this;
1419
+ addListener(event: "SIGCONT", listener: () => void): this;
1420
+ addListener(event: "SIGINT", listener: () => void): this;
1421
+ addListener(event: "SIGTSTP", listener: () => void): this;
1422
+
1423
+ emit(event: string, ...args: any[]): boolean;
1424
+ emit(event: "close"): boolean;
1425
+ emit(event: "line", input: any): boolean;
1426
+ emit(event: "pause"): boolean;
1427
+ emit(event: "resume"): boolean;
1428
+ emit(event: "SIGCONT"): boolean;
1429
+ emit(event: "SIGINT"): boolean;
1430
+ emit(event: "SIGTSTP"): boolean;
1431
+
1432
+ on(event: string, listener: Function): this;
1433
+ on(event: "close", listener: () => void): this;
1434
+ on(event: "line", listener: (input: any) => void): this;
1435
+ on(event: "pause", listener: () => void): this;
1436
+ on(event: "resume", listener: () => void): this;
1437
+ on(event: "SIGCONT", listener: () => void): this;
1438
+ on(event: "SIGINT", listener: () => void): this;
1439
+ on(event: "SIGTSTP", listener: () => void): this;
1440
+
1441
+ once(event: string, listener: Function): this;
1442
+ once(event: "close", listener: () => void): this;
1443
+ once(event: "line", listener: (input: any) => void): this;
1444
+ once(event: "pause", listener: () => void): this;
1445
+ once(event: "resume", listener: () => void): this;
1446
+ once(event: "SIGCONT", listener: () => void): this;
1447
+ once(event: "SIGINT", listener: () => void): this;
1448
+ once(event: "SIGTSTP", listener: () => void): this;
1449
+
1450
+ prependListener(event: string, listener: Function): this;
1451
+ prependListener(event: "close", listener: () => void): this;
1452
+ prependListener(event: "line", listener: (input: any) => void): this;
1453
+ prependListener(event: "pause", listener: () => void): this;
1454
+ prependListener(event: "resume", listener: () => void): this;
1455
+ prependListener(event: "SIGCONT", listener: () => void): this;
1456
+ prependListener(event: "SIGINT", listener: () => void): this;
1457
+ prependListener(event: "SIGTSTP", listener: () => void): this;
1458
+
1459
+ prependOnceListener(event: string, listener: Function): this;
1460
+ prependOnceListener(event: "close", listener: () => void): this;
1461
+ prependOnceListener(event: "line", listener: (input: any) => void): this;
1462
+ prependOnceListener(event: "pause", listener: () => void): this;
1463
+ prependOnceListener(event: "resume", listener: () => void): this;
1464
+ prependOnceListener(event: "SIGCONT", listener: () => void): this;
1465
+ prependOnceListener(event: "SIGINT", listener: () => void): this;
1466
+ prependOnceListener(event: "SIGTSTP", listener: () => void): this;
1370
1467
  }
1371
1468
 
1372
1469
  export interface Completer {
@@ -1428,6 +1525,7 @@ declare module "vm" {
1428
1525
  declare module "child_process" {
1429
1526
  import * as events from "events";
1430
1527
  import * as stream from "stream";
1528
+ import * as net from "net";
1431
1529
 
1432
1530
  export interface ChildProcess extends events.EventEmitter {
1433
1531
  stdin: stream.Writable;
@@ -1441,6 +1539,57 @@ declare module "child_process" {
1441
1539
  disconnect(): void;
1442
1540
  unref(): void;
1443
1541
  ref(): void;
1542
+
1543
+ /**
1544
+ * events.EventEmitter
1545
+ * 1. close
1546
+ * 2. disconnet
1547
+ * 3. error
1548
+ * 4. exit
1549
+ * 5. message
1550
+ **/
1551
+
1552
+ addListener(event: string, listener: Function): this;
1553
+ addListener(event: "close", listener: (code: number, signal: string) => void): this;
1554
+ addListener(event: "disconnet", listener: () => void): this;
1555
+ addListener(event: "error", listener: (err: Error) => void): this;
1556
+ addListener(event: "exit", listener: (code: number, signal: string) => void): this;
1557
+ addListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
1558
+
1559
+ emit(event: string, ...args: any[]): boolean;
1560
+ emit(event: "close", code: number, signal: string): boolean;
1561
+ emit(event: "disconnet"): boolean;
1562
+ emit(event: "error", err: Error): boolean;
1563
+ emit(event: "exit", code: number, signal: string): boolean;
1564
+ emit(event: "message", message: any, sendHandle: net.Socket | net.Server): boolean;
1565
+
1566
+ on(event: string, listener: Function): this;
1567
+ on(event: "close", listener: (code: number, signal: string) => void): this;
1568
+ on(event: "disconnet", listener: () => void): this;
1569
+ on(event: "error", listener: (err: Error) => void): this;
1570
+ on(event: "exit", listener: (code: number, signal: string) => void): this;
1571
+ on(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
1572
+
1573
+ once(event: string, listener: Function): this;
1574
+ once(event: "close", listener: (code: number, signal: string) => void): this;
1575
+ once(event: "disconnet", listener: () => void): this;
1576
+ once(event: "error", listener: (err: Error) => void): this;
1577
+ once(event: "exit", listener: (code: number, signal: string) => void): this;
1578
+ once(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
1579
+
1580
+ prependListener(event: string, listener: Function): this;
1581
+ prependListener(event: "close", listener: (code: number, signal: string) => void): this;
1582
+ prependListener(event: "disconnet", listener: () => void): this;
1583
+ prependListener(event: "error", listener: (err: Error) => void): this;
1584
+ prependListener(event: "exit", listener: (code: number, signal: string) => void): this;
1585
+ prependListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
1586
+
1587
+ prependOnceListener(event: string, listener: Function): this;
1588
+ prependOnceListener(event: "close", listener: (code: number, signal: string) => void): this;
1589
+ prependOnceListener(event: "disconnet", listener: () => void): this;
1590
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
1591
+ prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this;
1592
+ prependOnceListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this;
1444
1593
  }
1445
1594
 
1446
1595
  export interface SpawnOptions {
@@ -1670,6 +1819,7 @@ declare module "dns" {
1670
1819
 
1671
1820
  declare module "net" {
1672
1821
  import * as stream from "stream";
1822
+ import * as events from "events";
1673
1823
 
1674
1824
  export interface Socket extends stream.Duplex {
1675
1825
  // Extended base methods
@@ -1793,16 +1943,16 @@ declare module "net" {
1793
1943
  exclusive?: boolean;
1794
1944
  }
1795
1945
 
1796
- export interface Server extends Socket {
1946
+ export interface Server extends events.EventEmitter {
1797
1947
  listen(port: number, hostname?: string, backlog?: number, listeningListener?: Function): Server;
1798
1948
  listen(port: number, hostname?: string, listeningListener?: Function): Server;
1799
1949
  listen(port: number, backlog?: number, listeningListener?: Function): Server;
1800
1950
  listen(port: number, listeningListener?: Function): Server;
1801
1951
  listen(path: string, backlog?: number, listeningListener?: Function): Server;
1802
1952
  listen(path: string, listeningListener?: Function): Server;
1953
+ listen(options: ListenOptions, listeningListener?: Function): Server;
1803
1954
  listen(handle: any, backlog?: number, listeningListener?: Function): Server;
1804
1955
  listen(handle: any, listeningListener?: Function): Server;
1805
- listen(options: ListenOptions, listeningListener?: Function): Server;
1806
1956
  close(callback?: Function): Server;
1807
1957
  address(): { port: number; family: string; address: string; };
1808
1958
  getConnections(cb: (error: Error, count: number) => void): void;
@@ -2017,6 +2167,8 @@ declare module "fs" {
2017
2167
  export interface ReadStream extends stream.Readable {
2018
2168
  close(): void;
2019
2169
  destroy(): void;
2170
+ bytesRead: number;
2171
+ path: string | Buffer;
2020
2172
 
2021
2173
  /**
2022
2174
  * events.EventEmitter
@@ -2303,21 +2455,132 @@ declare module "fs" {
2303
2455
  export function exists(path: string | Buffer, callback?: (exists: boolean) => void): void;
2304
2456
  export function existsSync(path: string | Buffer): boolean;
2305
2457
 
2306
- interface Constants {
2458
+ export namespace constants {
2459
+ // File Access Constants
2460
+
2307
2461
  /** Constant for fs.access(). File is visible to the calling process. */
2308
- F_OK: number;
2462
+ export const F_OK: number;
2309
2463
 
2310
2464
  /** Constant for fs.access(). File can be read by the calling process. */
2311
- R_OK: number;
2465
+ export const R_OK: number;
2312
2466
 
2313
2467
  /** Constant for fs.access(). File can be written by the calling process. */
2314
- W_OK: number;
2468
+ export const W_OK: number;
2315
2469
 
2316
2470
  /** Constant for fs.access(). File can be executed by the calling process. */
2317
- X_OK: number;
2318
- }
2471
+ export const X_OK: number;
2472
+
2473
+ // File Open Constants
2474
+
2475
+ /** Constant for fs.open(). Flag indicating to open a file for read-only access. */
2476
+ export const O_RDONLY: number;
2477
+
2478
+ /** Constant for fs.open(). Flag indicating to open a file for write-only access. */
2479
+ export const O_WRONLY: number;
2480
+
2481
+ /** Constant for fs.open(). Flag indicating to open a file for read-write access. */
2482
+ export const O_RDWR: number;
2483
+
2484
+ /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */
2485
+ export const O_CREAT: number;
2486
+
2487
+ /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */
2488
+ export const O_EXCL: number;
2489
+
2490
+ /** Constant for fs.open(). Flag indicating that if path identifies a terminal device, opening the path shall not cause that terminal to become the controlling terminal for the process (if the process does not already have one). */
2491
+ export const O_NOCTTY: number;
2492
+
2493
+ /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */
2494
+ export const O_TRUNC: number;
2495
+
2496
+ /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */
2497
+ export const O_APPEND: number;
2498
+
2499
+ /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */
2500
+ export const O_DIRECTORY: number;
2501
+
2502
+ /** Constant for fs.open(). Flag indicating reading accesses to the file system will no longer result in an update to the atime information associated with the file. This flag is available on Linux operating systems only. */
2503
+ export const O_NOATIME: number;
2504
+
2505
+ /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */
2506
+ export const O_NOFOLLOW: number;
2319
2507
 
2320
- export const constants: Constants;
2508
+ /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */
2509
+ export const O_SYNC: number;
2510
+
2511
+ /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */
2512
+ export const O_SYMLINK: number;
2513
+
2514
+ /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */
2515
+ export const O_DIRECT: number;
2516
+
2517
+ /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */
2518
+ export const O_NONBLOCK: number;
2519
+
2520
+ // File Type Constants
2521
+
2522
+ /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */
2523
+ export const S_IFMT: number;
2524
+
2525
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */
2526
+ export const S_IFREG: number;
2527
+
2528
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */
2529
+ export const S_IFDIR: number;
2530
+
2531
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */
2532
+ export const S_IFCHR: number;
2533
+
2534
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */
2535
+ export const S_IFBLK: number;
2536
+
2537
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */
2538
+ export const S_IFIFO: number;
2539
+
2540
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */
2541
+ export const S_IFLNK: number;
2542
+
2543
+ /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */
2544
+ export const S_IFSOCK: number;
2545
+
2546
+ // File Mode Constants
2547
+
2548
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */
2549
+ export const S_IRWXU: number;
2550
+
2551
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */
2552
+ export const S_IRUSR: number;
2553
+
2554
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */
2555
+ export const S_IWUSR: number;
2556
+
2557
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */
2558
+ export const S_IXUSR: number;
2559
+
2560
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */
2561
+ export const S_IRWXG: number;
2562
+
2563
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */
2564
+ export const S_IRGRP: number;
2565
+
2566
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */
2567
+ export const S_IWGRP: number;
2568
+
2569
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */
2570
+ export const S_IXGRP: number;
2571
+
2572
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */
2573
+ export const S_IRWXO: number;
2574
+
2575
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */
2576
+ export const S_IROTH: number;
2577
+
2578
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */
2579
+ export const S_IWOTH: number;
2580
+
2581
+ /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */
2582
+ export const S_IXOTH: number;
2583
+ }
2321
2584
 
2322
2585
  /** Tests a user's permissions for the file specified by path. */
2323
2586
  export function access(path: string | Buffer, callback: (err: NodeJS.ErrnoException) => void): void;
@@ -2548,6 +2811,69 @@ declare module "tls" {
2548
2811
  }
2549
2812
 
2550
2813
  export class TLSSocket extends stream.Duplex {
2814
+ /**
2815
+ * Construct a new tls.TLSSocket object from an existing TCP socket.
2816
+ */
2817
+ constructor(socket:net.Socket, options?: {
2818
+ /**
2819
+ * An optional TLS context object from tls.createSecureContext()
2820
+ */
2821
+ secureContext?: SecureContext,
2822
+ /**
2823
+ * If true the TLS socket will be instantiated in server-mode.
2824
+ * Defaults to false.
2825
+ */
2826
+ isServer?: boolean,
2827
+ /**
2828
+ * An optional net.Server instance.
2829
+ */
2830
+ server?: net.Server,
2831
+ /**
2832
+ * If true the server will request a certificate from clients that
2833
+ * connect and attempt to verify that certificate. Defaults to
2834
+ * false.
2835
+ */
2836
+ requestCert?: boolean,
2837
+ /**
2838
+ * If true the server will reject any connection which is not
2839
+ * authorized with the list of supplied CAs. This option only has an
2840
+ * effect if requestCert is true. Defaults to false.
2841
+ */
2842
+ rejectUnauthorized?: boolean,
2843
+ /**
2844
+ * An array of strings or a Buffer naming possible NPN protocols.
2845
+ * (Protocols should be ordered by their priority.)
2846
+ */
2847
+ NPNProtocols?: string[] | Buffer,
2848
+ /**
2849
+ * An array of strings or a Buffer naming possible ALPN protocols.
2850
+ * (Protocols should be ordered by their priority.) When the server
2851
+ * receives both NPN and ALPN extensions from the client, ALPN takes
2852
+ * precedence over NPN and the server does not send an NPN extension
2853
+ * to the client.
2854
+ */
2855
+ ALPNProtocols?: string[] | Buffer,
2856
+ /**
2857
+ * SNICallback(servername, cb) <Function> A function that will be
2858
+ * called if the client supports SNI TLS extension. Two arguments
2859
+ * will be passed when called: servername and cb. SNICallback should
2860
+ * invoke cb(null, ctx), where ctx is a SecureContext instance.
2861
+ * (tls.createSecureContext(...) can be used to get a proper
2862
+ * SecureContext.) If SNICallback wasn't provided the default callback
2863
+ * with high-level API will be used (see below).
2864
+ */
2865
+ SNICallback?: Function,
2866
+ /**
2867
+ * An optional Buffer instance containing a TLS session.
2868
+ */
2869
+ session?: Buffer,
2870
+ /**
2871
+ * If true, specifies that the OCSP status request extension will be
2872
+ * added to the client hello and an 'OCSPResponse' event will be
2873
+ * emitted on the socket before establishing a secure communication
2874
+ */
2875
+ requestOCSP?: boolean
2876
+ });
2551
2877
  /**
2552
2878
  * Returns the bound address, the address family name and port of the underlying socket as reported by
2553
2879
  * the operating system.
@@ -3004,7 +3330,7 @@ declare module "stream" {
3004
3330
  export class Readable extends events.EventEmitter implements NodeJS.ReadableStream {
3005
3331
  readable: boolean;
3006
3332
  constructor(opts?: ReadableOptions);
3007
- _read(size: number): void;
3333
+ protected _read(size: number): void;
3008
3334
  read(size?: number): any;
3009
3335
  setEncoding(encoding: string): void;
3010
3336
  pause(): Readable;
@@ -3086,7 +3412,7 @@ declare module "stream" {
3086
3412
  export class Writable extends events.EventEmitter implements NodeJS.WritableStream {
3087
3413
  writable: boolean;
3088
3414
  constructor(opts?: WritableOptions);
3089
- _write(chunk: any, encoding: string, callback: Function): void;
3415
+ protected _write(chunk: any, encoding: string, callback: Function): void;
3090
3416
  write(chunk: any, cb?: Function): boolean;
3091
3417
  write(chunk: any, encoding?: string, cb?: Function): boolean;
3092
3418
  end(): void;
@@ -3174,7 +3500,7 @@ declare module "stream" {
3174
3500
  // Writeable
3175
3501
  writable: boolean;
3176
3502
  constructor(opts?: DuplexOptions);
3177
- _write(chunk: any, encoding: string, callback: Function): void;
3503
+ protected _write(chunk: any, encoding: string, callback: Function): void;
3178
3504
  write(chunk: any, cb?: Function): boolean;
3179
3505
  write(chunk: any, encoding?: string, cb?: Function): boolean;
3180
3506
  end(): void;
@@ -3182,7 +3508,7 @@ declare module "stream" {
3182
3508
  end(chunk: any, encoding?: string, cb?: Function): void;
3183
3509
  }
3184
3510
 
3185
- export interface TransformOptions extends ReadableOptions, WritableOptions {
3511
+ export interface TransformOptions extends DuplexOptions {
3186
3512
  transform?: (chunk: string | Buffer, encoding: string, callback: Function) => any;
3187
3513
  flush?: (callback: Function) => any;
3188
3514
  }
@@ -3192,8 +3518,8 @@ declare module "stream" {
3192
3518
  readable: boolean;
3193
3519
  writable: boolean;
3194
3520
  constructor(opts?: TransformOptions);
3195
- _transform(chunk: any, encoding: string, callback: Function): void;
3196
- _flush(callback: Function): void;
3521
+ protected _transform(chunk: any, encoding: string, callback: Function): void;
3522
+ protected _flush(callback: Function): void;
3197
3523
  read(size?: number): any;
3198
3524
  setEncoding(encoding: string): void;
3199
3525
  pause(): Transform;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "6.0.44",
3
+ "version": "6.0.48",
4
4
  "description": "TypeScript definitions for Node.js v6.x",
5
5
  "license": "MIT",
6
6
  "author": "Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>",
@@ -13,5 +13,5 @@
13
13
  "dependencies": {},
14
14
  "peerDependencies": {},
15
15
  "typings": "index.d.ts",
16
- "typesPublisherContentHash": "f758628256d503a7988e6d7a704aa01c7538da5f829c4ff44029dd18ae2eedd0"
16
+ "typesPublisherContentHash": "7868865e670348c18121748382d9e255c485aaf32d62f7c1269d4168170f365d"
17
17
  }
node/types-metadata.json CHANGED
@@ -2,15 +2,24 @@
2
2
  "authors": "Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>",
3
3
  "definitionFilename": "index.d.ts",
4
4
  "libraryDependencies": [],
5
- "moduleDependencies": [],
6
- "libraryMajorVersion": "6",
7
- "libraryMinorVersion": "0",
5
+ "moduleDependencies": [
6
+ "child_process",
7
+ "crypto",
8
+ "events",
9
+ "http",
10
+ "net",
11
+ "readline",
12
+ "stream",
13
+ "tls"
14
+ ],
15
+ "libraryMajorVersion": 6,
16
+ "libraryMinorVersion": 0,
8
17
  "libraryName": "Node.js v6.x",
9
18
  "typingsPackageName": "node",
10
19
  "projectName": "http://nodejs.org/",
11
20
  "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
12
21
  "sourceBranch": "types-2.0",
13
- "kind": "MultipleModules",
22
+ "kind": "ModuleAugmentation",
14
23
  "globals": [
15
24
  "Buffer",
16
25
  "NodeJS",
@@ -68,5 +77,5 @@
68
77
  "index.d.ts"
69
78
  ],
70
79
  "hasPackageJson": false,
71
- "contentHash": "f758628256d503a7988e6d7a704aa01c7538da5f829c4ff44029dd18ae2eedd0"
80
+ "contentHash": "7868865e670348c18121748382d9e255c485aaf32d62f7c1269d4168170f365d"
72
81
  }