diff --git a/packages/mysql/test-d/index.test-d.ts b/packages/mysql/test-d/index.test-d.ts index ff88e10f..bbff2a8f 100644 --- a/packages/mysql/test-d/index.test-d.ts +++ b/packages/mysql/test-d/index.test-d.ts @@ -16,10 +16,10 @@ const connectionMySQL: captureMySQL.PatchedConnection = mysql.createConnection(c const poolMySQL: captureMySQL.PatchedPool = mysql.createPool(config); const poolClusterMySQL: captureMySQL.PatchedPoolCluster = mysql.createPoolCluster(config); -const queryCallback: MySQL.queryCallback = function (err: MySQL.MysqlError | null, rows: any) { +const queryCallbackMySQL: MySQL.queryCallback = function (err: MySQL.MysqlError | null, rows: any) { }; -const getConnectionCallback = function (err: MySQL.MysqlError, conn: captureMySQL.PatchedConnection) { +const getConnectionCallbackMySQL = function (err: MySQL.MysqlError, conn: captureMySQL.PatchedConnection) { }; const connectionMySQL2: captureMySQL.PatchedMySQL2Connection = mysql2.createConnection(config); @@ -28,16 +28,16 @@ const poolClusterMySQL2: captureMySQL.PatchedMySQL2PoolCluster = mysql2.createPo const queryCallbackMySQL2: captureMySQL.MySQL2QueryCallback | undefined = function () { }; -expectType(connectionMySQL.query('SELECT * FROM cats', queryCallback)); -expectType(connectionMySQL.query('SELECT * FROM cats', queryCallback, segment)); +expectType(connectionMySQL.query('SELECT * FROM cats', queryCallbackMySQL)); +expectType(connectionMySQL.query('SELECT * FROM cats', queryCallbackMySQL, segment)); -expectType(poolMySQL.query('SELECT * FROM cats', queryCallback)); -expectType(poolMySQL.query('SELECT * FROM cats', queryCallback, segment)); -expectType(poolMySQL.getConnection(getConnectionCallback)); +expectType(poolMySQL.query('SELECT * FROM cats', queryCallbackMySQL)); +expectType(poolMySQL.query('SELECT * FROM cats', queryCallbackMySQL, segment)); +expectType(poolMySQL.getConnection(getConnectionCallbackMySQL)); -expectType(poolClusterMySQL.getConnection(getConnectionCallback)); -expectType(poolClusterMySQL.getConnection('pattern', getConnectionCallback)); -expectType(poolClusterMySQL.getConnection('pattern', 'selector', getConnectionCallback)); +expectType(poolClusterMySQL.getConnection(getConnectionCallbackMySQL)); +expectType(poolClusterMySQL.getConnection('pattern', getConnectionCallbackMySQL)); +expectType(poolClusterMySQL.getConnection('pattern', 'selector', getConnectionCallbackMySQL)); expectType(poolClusterMySQL.of('pattern')); expectType(poolClusterMySQL.of('pattern', 'selector'));