File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ export interface Pool extends mysql.Connection {
160
160
callback : ( err : NodeJS . ErrnoException , connection : PoolConnection ) => any
161
161
) : void ;
162
162
releaseConnection ( connection : PoolConnection | PromisePoolConnection ) : void ;
163
+ on ( event : string , listener : ( args : any [ ] ) => void ) : this;
163
164
on ( event : 'connection' , listener : ( connection : PoolConnection ) => any ) : this;
164
165
on ( event : 'acquire' , listener : ( connection : PoolConnection ) => any ) : this;
165
166
on ( event : 'release' , listener : ( connection : PoolConnection ) => any ) : this;
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ declare class Connection extends EventEmitter {
375
375
376
376
format ( sql : string , values ?: any | any [ ] | { [ param : string ] : any } ) : string ;
377
377
378
- on ( event : string , listener : Function ) : this;
378
+ on ( event : string , listener : ( args : any [ ] ) => void ) : this;
379
379
380
380
rollback ( callback : ( err : Query . QueryError | null ) => void ) : void ;
381
381
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ declare class Pool extends EventEmitter {
200
200
callback ?: ( err : NodeJS . ErrnoException | null , ...args : any [ ] ) => any
201
201
) : void ;
202
202
203
- on ( event : string , listener : Function ) : this;
203
+ on ( event : string , listener : ( args : any [ ] ) => void ) : this;
204
204
on ( event : 'connection' , listener : ( connection : PoolConnection ) => any ) : this;
205
205
206
206
promise ( promiseImpl ?: PromiseConstructor ) : PromisePool ;
You can’t perform that action at this time.
0 commit comments