11declare module "event-stream" {
22 import { Stream } from 'stream' ;
3- import { ThroughStream as _ThroughStream } from 'through' ;
3+ import { ThroughStream as _ThroughStream } from 'through' ;
44 import * as File from 'vinyl' ;
55
66 export interface ThroughStream extends _ThroughStream {
@@ -14,14 +14,14 @@ declare module "event-stream" {
1414 function concat ( ...stream : Stream [ ] ) : ThroughStream ;
1515 function duplex ( istream : Stream , ostream : Stream ) : ThroughStream ;
1616
17- function through ( write ?: ( data : any ) => void , end ?: ( ) => void ,
18- opts ?: { autoDestroy : boolean ; } ) : ThroughStream ;
17+ function through ( write ?: ( this : ThroughStream , data : any ) => void , end ?: ( this : ThroughStream ) => void ,
18+ opts ?: { autoDestroy : boolean ; } ) : ThroughStream ;
1919
2020 function readArray < T > ( array : T [ ] ) : ThroughStream ;
21- function writeArray < T > ( cb : ( err :Error , array :T [ ] ) => void ) : ThroughStream ;
21+ function writeArray < T > ( cb : ( err : Error , array : T [ ] ) => void ) : ThroughStream ;
2222
23- function mapSync < I , O > ( cb : ( data :I ) => O ) : ThroughStream ;
24- function map < I , O > ( cb : ( data :I , cb :( err ?:Error , data ?: O ) => void ) => O ) : ThroughStream ;
23+ function mapSync < I , O > ( cb : ( data : I ) => O ) : ThroughStream ;
24+ function map < I , O > ( cb : ( data : I , cb : ( err ?: Error , data ?: O ) => void ) => O ) : ThroughStream ;
2525
26- function readable ( asyncFunction : Function ) : any ;
26+ function readable ( asyncFunction : ( this : ThroughStream , ... args : any [ ] ) => any ) : any ;
2727}
0 commit comments