mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
add stream.Stream type
This commit is contained in:
1 parent
19e6407072
commit
a38d60a3dd
2 files changed
+16
-2
No files matched your search
Vendored
+4
@@ -1121,6 +1121,10 @@ declare module "crypto" {
|
||||
declare module "stream" {
|
||||
import events = require("events");
|
||||
|
||||
export interface Stream extends events.EventEmitter {
|
||||
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
|
||||
}
|
||||
|
||||
export interface ReadableOptions {
|
||||
highWaterMark?: number;
|
||||
encoding?: string;
|
||||
|
||||
Reference in new issue
Block a user