From 58a2e195ef11ed2cd7829f0f68e9b8d61d40ee39 Mon Sep 17 00:00:00 2001 From: "Eric N. Vander Weele" Date: Tue, 29 Sep 2015 21:19:34 -0700 Subject: [PATCH] node: Update fs.create(Read|Write)Stream definition This commit includes the following changes: * Remove duplicate type definition for `fs.createReadStream`. * Update `options` object typings for both functions to match the keys and types specified in the Node.js v0.12.x documentation. Links to the aforementioned functions are provided below for reference: * http://nodejs.org/docs/latest-v0.12.x/api/fs.html#fs_fs_createreadstream_path_options * http://nodejs.org/docs/latest-v0.12.x/api/fs.html#fs_fs_createwritestream_path_options --- node/node.d.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/node/node.d.ts b/node/node.d.ts index 140a72c74..c2f29d275 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -1310,21 +1310,15 @@ declare module "fs" { export function createReadStream(path: string, options?: { flags?: string; encoding?: string; - fd?: string; + fd?: number; mode?: number; - bufferSize?: number; - }): ReadStream; - export function createReadStream(path: string, options?: { - flags?: string; - encoding?: string; - fd?: string; - mode?: string; - bufferSize?: number; + autoClose?: boolean; }): ReadStream; export function createWriteStream(path: string, options?: { flags?: string; encoding?: string; - string?: string; + fd?: number; + mode?: number; }): WriteStream; }