Skip to content

Commit d065991

Browse files
authored
Merge pull request #1620 from pihentagy/patch-1
getConnection calls back even if there is no error
2 parents 3a250e5 + 460e600 commit d065991

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)