@types/node 6.0.97 → 6.0.101

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 v6/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://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v6
9
9
 
10
10
  Additional Details
11
- * Last updated: Tue, 06 Feb 2018 20:13:23 GMT
11
+ * Last updated: Tue, 13 Feb 2018 20:54:40 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, SlowBuffer, __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 <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>, Thomas Bouldin <https://github.com/inlined>, Sebastian Silbermann <https://github.com/eps1lon>.
16
+ These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>, Thomas Bouldin <https://github.com/inlined>, Sebastian Silbermann <https://github.com/eps1lon>, Alorel <https://github.com/Alorel>.
node v6/index.d.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  // Wilco Bakker <https://github.com/WilcoBakker>
6
6
  // Thomas Bouldin <https://github.com/inlined>
7
7
  // Sebastian Silbermann <https://github.com/eps1lon>
8
+ // Alorel <https://github.com/Alorel>
8
9
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
9
10
 
10
11
  /************************************************
@@ -2093,9 +2094,9 @@ declare module "net" {
2093
2094
  setEncoding(encoding?: string): void;
2094
2095
  write(data: any, encoding?: string, callback?: Function): void;
2095
2096
  destroy(): void;
2096
- setTimeout(timeout: number, callback?: Function): void;
2097
- setNoDelay(noDelay?: boolean): void;
2098
- setKeepAlive(enable?: boolean, initialDelay?: number): void;
2097
+ setTimeout(timeout: number, callback?: Function): this;
2098
+ setNoDelay(noDelay?: boolean): this;
2099
+ setKeepAlive(enable?: boolean, initialDelay?: number): this;
2099
2100
  address(): { port: number; family: string; address: string; };
2100
2101
  unref(): void;
2101
2102
  ref(): void;
@@ -2595,8 +2596,51 @@ declare module "fs" {
2595
2596
  * @returns Returns the created folder path.
2596
2597
  */
2597
2598
  export function mkdtempSync(prefix: string): string;
2598
- export function readdir(path: string | Buffer, callback?: (err: NodeJS.ErrnoException, files: string[]) => void): void;
2599
- export function readdirSync(path: string | Buffer): string[];
2599
+ /**
2600
+ * Asynchronous readdir(3) - read a directory.
2601
+ * @param path A path to a file.
2602
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
2603
+ */
2604
+ export function readdir(path: string | Buffer, options: { encoding: BufferEncoding | null } | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
2605
+ /**
2606
+ * Asynchronous readdir(3) - read a directory.
2607
+ * @param path A path to a file.
2608
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
2609
+ */
2610
+ export function readdir(path: string | Buffer, options: { encoding: "buffer" } | "buffer", callback: (err: NodeJS.ErrnoException, files: Buffer[]) => void): void;
2611
+
2612
+ /**
2613
+ * Asynchronous readdir(3) - read a directory.
2614
+ * @param path A path to a file.
2615
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
2616
+ */
2617
+ export function readdir(path: string | Buffer, options: { encoding?: string | null } | string | undefined | null, callback: (err: NodeJS.ErrnoException, files: string[] | Buffer[]) => void): void;
2618
+
2619
+ /**
2620
+ * Asynchronous readdir(3) - read a directory.
2621
+ * @param path A path to a file.
2622
+ */
2623
+ export function readdir(path: string | Buffer, callback: (err: NodeJS.ErrnoException, files: string[]) => void): void;
2624
+ /**
2625
+ * Synchronous readdir(3) - read a directory.
2626
+ * @param path A path to a file.
2627
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
2628
+ */
2629
+ export function readdirSync(path: string | Buffer, options?: { encoding: BufferEncoding | null } | BufferEncoding | null): string[];
2630
+
2631
+ /**
2632
+ * Synchronous readdir(3) - read a directory.
2633
+ * @param path A path to a file.
2634
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
2635
+ */
2636
+ export function readdirSync(path: string | Buffer, options: { encoding: "buffer" } | "buffer"): Buffer[];
2637
+
2638
+ /**
2639
+ * Synchronous readdir(3) - read a directory.
2640
+ * @param path A path to a file.
2641
+ * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
2642
+ */
2643
+ export function readdirSync(path: string | Buffer, options?: { encoding?: string | null } | string | null): string[] | Buffer[];
2600
2644
  export function close(fd: number, callback?: (err?: NodeJS.ErrnoException) => void): void;
2601
2645
  export function closeSync(fd: number): void;
2602
2646
  export function open(path: string | Buffer, flags: string | number, callback: (err: NodeJS.ErrnoException, fd: number) => void): void;
@@ -3853,12 +3897,12 @@ declare module "tty" {
3853
3897
  import * as net from "net";
3854
3898
 
3855
3899
  export function isatty(fd: number): boolean;
3856
- export interface ReadStream extends net.Socket {
3900
+ export class ReadStream extends net.Socket {
3857
3901
  isRaw: boolean;
3858
3902
  setRawMode(mode: boolean): void;
3859
3903
  isTTY: boolean;
3860
3904
  }
3861
- export interface WriteStream extends net.Socket {
3905
+ export class WriteStream extends net.Socket {
3862
3906
  columns: number;
3863
3907
  rows: number;
3864
3908
  isTTY: boolean;
node v6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "6.0.97",
3
+ "version": "6.0.101",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -26,6 +26,11 @@
26
26
  "name": "Sebastian Silbermann",
27
27
  "url": "https://github.com/eps1lon",
28
28
  "githubUsername": "eps1lon"
29
+ },
30
+ {
31
+ "name": "Alorel",
32
+ "url": "https://github.com/Alorel",
33
+ "githubUsername": "Alorel"
29
34
  }
30
35
  ],
31
36
  "main": "",
@@ -35,6 +40,6 @@
35
40
  },
36
41
  "scripts": {},
37
42
  "dependencies": {},
38
- "typesPublisherContentHash": "0ad281fe03b5c4601abca527c83a0a1e268f3864b2cc265e6eb4ec21f05791ea",
43
+ "typesPublisherContentHash": "fee8deacb47b97495ef617746680ad16d7a2a9c224fdf1aaf4bd02ed306729d2",
39
44
  "typeScriptVersion": "2.0"
40
45
  }