Merge pull request #6067 from ericvw/fs_createstream_fd

node: Update fs.create(Read|Write)Stream definition
This commit is contained in:
Masahiro Wakame
2015-10-06 03:12:12 +09:00
+4 -10
View File
@@ -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;
}