Skip to content

Commit 5cc6fe3

Browse files
committed
fix Pool type
1 parent 5022b54 commit 5cc6fe3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

typings/mysql/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Server = require('./lib/Server');
1414

1515
export function createConnection(connectionUri: string): Connection;
1616
export function createConnection(config: BaseConnection.ConnectionOptions): Connection;
17-
export function createPool(config: BasePool.PoolOptions): Pool;
17+
export function createPool(config: BasePool.PoolOptions): BasePool;
1818
export function createPoolCluster(config?: BasePoolCluster.PoolClusterOptions): PoolCluster;
1919
export function escape(value: any): string;
2020
export function escapeId(value: any): string;

typings/mysql/lib/Pool.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ declare class Pool extends EventEmitter {
6060

6161
on(event: string, listener: Function): this;
6262
on(event: 'connection', listener: (connection: PoolConnection) => any): this;
63+
64+
promise(promiseImpl?: any): any
6365
}
6466

6567
export = Pool;

0 commit comments

Comments
 (0)