mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Merge pull request #3916 from sgkim126/mysql
IPool of mysql has end function like IConnection or IPoolCluster.
This commit is contained in:
3
mysql/mysql.d.ts
vendored
3
mysql/mysql.d.ts
vendored
@@ -83,6 +83,9 @@ declare module "mysql" {
|
||||
|
||||
query: IQueryFunction;
|
||||
|
||||
end(): void;
|
||||
end(callback: (err: IError, ...args: any[]) => void): void;
|
||||
|
||||
on(ev: string, callback: (...args: any[]) => void): IPool;
|
||||
on(ev: 'connection', callback: (connection: IConnection) => void): IPool;
|
||||
on(ev: 'error', callback: (err: IError) => void): IPool;
|
||||
|
||||
Reference in New Issue
Block a user