mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Fix wrong stream TransformOptions interface. (#11849)
Transform streams are duplex streams and extend the latter's constructor options.
This commit is contained in:
committed by
Mohamed Hegazy
parent
d898304c56
commit
cc3ca26de4
Vendored
+1
-1
@@ -3276,7 +3276,7 @@ declare module "stream" {
|
||||
end(chunk: any, encoding?: string, cb?: Function): void;
|
||||
}
|
||||
|
||||
export interface TransformOptions extends ReadableOptions, WritableOptions {
|
||||
export interface TransformOptions extends DuplexOptions {
|
||||
transform?: (chunk: string | Buffer, encoding: string, callback: Function) => any;
|
||||
flush?: (callback: Function) => any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user