From 161225da51f1b7622da7db061774f85e2167e786 Mon Sep 17 00:00:00 2001 From: Seulgi Kim Date: Fri, 20 Mar 2015 02:38:04 +0900 Subject: [PATCH] IPool of mysql has end function like IConnection or IPoolCluster. User should call end function to close all connection in a pool. See https://github.com/felixge/node-mysql/#closing-all-the-connections-in-a-pool for more information. --- mysql/mysql.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mysql/mysql.d.ts b/mysql/mysql.d.ts index 4c701b9316..9b6ed79988 100644 --- a/mysql/mysql.d.ts +++ b/mysql/mysql.d.ts @@ -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;