Merge pull request #21544 from eps1lon/node-fs-createReadStream

node: add documented highWaterMark option to fs.createReadStream
This commit is contained in:
Nathan Shively-Sanders
2017-11-15 10:33:34 -08:00
committed by GitHub
4 changed files with 14 additions and 2 deletions
+2
View File
@@ -14,6 +14,7 @@
// Kelvin Jin <https://github.com/kjin>
// Alvis HT Tang <https://github.com/alvis>
// Oliver Joseph Ash <https://github.com/OliverJAsh>
// Sebastian Silbermann <https://github.com/eps1lon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/************************************************
@@ -4350,6 +4351,7 @@ declare module "fs" {
autoClose?: boolean;
start?: number;
end?: number;
highWaterMark?: number;
}): ReadStream;
/**
+4 -1
View File
@@ -1,6 +1,8 @@
// Type definitions for Node.js 4.2
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>
// DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
// Sebastian Silbermann <https://github.com/eps1lon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/************************************************
@@ -1847,6 +1849,7 @@ declare module "fs" {
fd?: number;
mode?: number;
autoClose?: boolean;
highWaterMark?: number;
}): ReadStream;
export function createWriteStream(path: string, options?: {
flags?: string;
+6 -1
View File
@@ -1,6 +1,10 @@
// Type definitions for Node.js v6.x
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>, Thomas Bouldin <https://github.com/inlined>
// Definitions 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>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/************************************************
@@ -2746,6 +2750,7 @@ declare module "fs" {
autoClose?: boolean;
start?: number;
end?: number;
highWaterMark?: number;
}): ReadStream;
export function createWriteStream(path: string | Buffer, options?: {
flags?: string;
+2
View File
@@ -5,6 +5,7 @@
// Parambir Singh <https://github.com/parambirs>
// Christian Vaagland Tellnes <https://github.com/tellnes>
// Wilco Bakker <https://github.com/WilcoBakker>
// Sebastian Silbermann <https://github.com/eps1lon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/************************************************
@@ -2879,6 +2880,7 @@ declare module "fs" {
autoClose?: boolean;
start?: number;
end?: number;
highWaterMark?: number;
}): ReadStream;
export function createWriteStream(path: string | Buffer, options?: {
flags?: string;