From f5237376e21a2aa596c99a684fd98da26ebc91eb Mon Sep 17 00:00:00 2001 From: satoshun00 Date: Tue, 18 Apr 2017 11:46:45 +0900 Subject: [PATCH] fixup! fix(mysql): Add definition for PoolCluster.end with callback --- types/mysql/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/mysql/index.d.ts b/types/mysql/index.d.ts index ab3f8009ac..7660feb374 100644 --- a/types/mysql/index.d.ts +++ b/types/mysql/index.d.ts @@ -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;