mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #1653 from jvilk/node-fixes-2
[Node] Fixing WritableStream.write and WritableStream.end.
This commit is contained in:
Vendored
+6
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user