mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 12:46:36 +08:00
fixup! fix(mysql): Add definition for PoolCluster.end with callback
This commit is contained in:
3
types/mysql/index.d.ts
vendored
3
types/mysql/index.d.ts
vendored
@@ -100,8 +100,7 @@ interface IPoolCluster {
|
||||
add(config: IPoolConfig): void;
|
||||
add(group: string, config: IPoolConfig): void;
|
||||
|
||||
end(): void;
|
||||
end(callback: (err: IError, ...args: any[]) => void): void;
|
||||
end(callback?: (err: IError, ...args: any[]) => void): void;
|
||||
|
||||
getConnection(callback: (err: IError, connection: IConnection) => void): void;
|
||||
getConnection(group: string, callback: (err: IError, connection: IConnection) => void): void;
|
||||
|
||||
Reference in New Issue
Block a user