Merge pull request #1653 from jvilk/node-fixes-2

[Node] Fixing WritableStream.write and WritableStream.end.
This commit is contained in:
Masahiro Wakame
2014-02-04 18:06:07 -08:00
+6 -4
View File
@@ -91,11 +91,13 @@ interface EventEmitter {
interface WritableStream extends EventEmitter {
writable: boolean;
write(str: string, encoding?: string, fd?: string): boolean;
write(buffer: NodeBuffer): boolean;
write(buffer: NodeBuffer, cb?: Function): boolean;
write(str: string, cb?: Function): boolean;
write(str: string, encoding?: string, cb?: Function): boolean;
end(): void;
end(str: string, enconding: string): void;
end(buffer: NodeBuffer): void;
end(buffer: NodeBuffer, cb?: Function): void;
end(str: string, cb?: Function): void;
end(str: string, encoding?: string, cb?: Function): void;
destroy(): void;
destroySoon(): void;
}