mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
fix(mysql): Add definition for PoolCluster.end with callback
This commit is contained in:
Vendored
+1
@@ -101,6 +101,7 @@ interface IPoolCluster {
|
||||
add(group: string, config: IPoolConfig): void;
|
||||
|
||||
end(): 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;
|
||||
|
||||
@@ -17,7 +17,7 @@ connection.query('SELECT 1 + 1 AS solution', function (err, rows, fields) {
|
||||
console.log('The solution is: ', rows[0].solution);
|
||||
});
|
||||
|
||||
connection.end();
|
||||
connection.end(function (err) {});
|
||||
|
||||
connection = mysql.createConnection({
|
||||
host: 'example.org',
|
||||
@@ -396,4 +396,4 @@ connection = mysql.createConnection({ debug: ['ComQueryPacket', 'RowDataPacket']
|
||||
|
||||
var type: mysql.FieldType = mysql.FieldType.SHORT;
|
||||
var info: mysql.IFieldInfo;
|
||||
info.type = type;
|
||||
info.type = type;
|
||||
|
||||
Reference in New Issue
Block a user