File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export interface PoolCluster extends EventEmitter {
115
115
116
116
of ( pattern : string , selector ?: string ) : PoolNamespace ;
117
117
118
- on ( event : string , listener : ( args : any [ ] ) => void ) : this;
118
+ on ( event : string , listener : ( ... args : any [ ] ) => void ) : this;
119
119
on ( event : 'remove' , listener : ( nodeId : number ) => void ) : this;
120
120
on ( event : 'warn' , listener : ( err : Error ) => void ) : this;
121
121
}
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ declare class Connection extends QueryableBase(ExecutableBase(EventEmitter)) {
357
357
358
358
format ( sql : string , values ?: any | any [ ] | { [ param : string ] : any } ) : string ;
359
359
360
- on ( event : string , listener : ( args : any [ ] ) => void ) : this;
360
+ on ( event : string , listener : ( ... args : any [ ] ) => void ) : this;
361
361
362
362
rollback ( callback : ( err : QueryError | null ) => void ) : void ;
363
363
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ declare class Pool extends QueryableBase(ExecutableBase(EventEmitter)) {
63
63
callback ?: ( err : NodeJS . ErrnoException | null , ...args : any [ ] ) => any
64
64
) : void ;
65
65
66
- on ( event : string , listener : ( args : any [ ] ) => void ) : this;
66
+ on ( event : string , listener : ( ... args : any [ ] ) => void ) : this;
67
67
on ( event : 'connection' , listener : ( connection : PoolConnection ) => any ) : this;
68
68
on ( event : 'acquire' , listener : ( connection : PoolConnection ) => any ) : this;
69
69
on ( event : 'release' , listener : ( connection : PoolConnection ) => any ) : this;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ declare class PoolCluster extends EventEmitter {
78
78
79
79
of ( pattern : string , selector ?: string ) : PoolNamespace ;
80
80
81
- on ( event : string , listener : ( args : any [ ] ) => void ) : this;
81
+ on ( event : string , listener : ( ... args : any [ ] ) => void ) : this;
82
82
on ( event : 'remove' , listener : ( nodeId : number ) => void ) : this;
83
83
on ( event : 'warn' , listener : ( err : Error ) => void ) : this;
84
84
}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ declare class Query extends Sequence {
133
133
*/
134
134
stream ( options ?: StreamOptions ) : Readable ;
135
135
136
- on ( event : string , listener : ( args : any [ ] ) => void ) : this;
136
+ on ( event : string , listener : ( ... args : any [ ] ) => void ) : this;
137
137
on ( event : 'error' , listener : ( err : QueryError ) => any ) : this;
138
138
on (
139
139
event : 'fields' ,
You can’t perform that action at this time.
0 commit comments