node: add documented highWaterMark option

This commit is contained in:
Sebastian Silbermann
2017-11-15 17:59:37 +01:00
parent 53361e7eba
commit df70a8d72c
4 changed files with 14 additions and 2 deletions

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;
/**

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;

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;

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;