From 76db54a91e2f9861605d5975158701233879d02c Mon Sep 17 00:00:00 2001 From: wellwelwel <46850407+wellwelwel@users.noreply.github.com> Date: Sun, 11 Jun 2023 04:12:36 -0300 Subject: [PATCH] fix: `PromisePoolConnection` import name --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index e718ea577b..733b5ded48 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ import { Connection as PromiseConnection, Pool as PromisePool, - PoolConnection as PromisePoolConnection2, + PoolConnection as PromisePoolConnection, } from './promise'; import * as mysql from './typings/mysql'; @@ -153,7 +153,7 @@ export interface Pool extends mysql.Connection { getConnection( callback: (err: NodeJS.ErrnoException, connection: PoolConnection) => any ): void; - releaseConnection(connection: PoolConnection | PromisePoolConnection2): void; + releaseConnection(connection: PoolConnection | PromisePoolConnection): void; on(event: 'connection', listener: (connection: PoolConnection) => any): this; on(event: 'acquire', listener: (connection: PoolConnection) => any): this; on(event: 'release', listener: (connection: PoolConnection) => any): this;