Skip to content

Commit 460e600

Browse files
authored
getConnection calls back even if there is no error
1 parent f21772f commit 460e600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/mysql/lib/Pool.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ declare class Pool extends EventEmitter {
4949

5050
config: Pool.PoolOptions;
5151

52-
getConnection(callback: (err: NodeJS.ErrnoException, connection: PoolConnection) => any): void;
52+
getConnection(callback: (err: NodeJS.ErrnoException | null, connection: PoolConnection) => any): void;
5353

5454
query<T extends RowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[] | ResultSetHeader>(sql: string, callback?: (err: Query.QueryError | null, result: T, fields: FieldPacket[]) => any): Query;
5555
query<T extends RowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[] | ResultSetHeader>(sql: string, values: any | any[] | { [param: string]: any }, callback?: (err: Query.QueryError | null, result: T, fields: FieldPacket[]) => any): Query;

0 commit comments

Comments
 (0)