Skip to content

Commit 744a49e

Browse files
committed
refactor: rollback eslint ban-types for Connection and PoolConnection
1 parent ab0de35 commit 744a49e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

typings/mysql/lib/Connection.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ declare class Connection extends EventEmitter {
375375

376376
format(sql: string, values?: any | any[] | { [param: string]: any }): string;
377377

378-
on(event: string, listener: (args: any[]) => void): this;
378+
on(event: string, listener: Function): this;
379379

380380
rollback(callback: (err: Query.QueryError | null) => void): void;
381381

typings/mysql/lib/Pool.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ declare class Pool extends EventEmitter {
200200
callback?: (err: NodeJS.ErrnoException | null, ...args: any[]) => any
201201
): void;
202202

203-
on(event: string, listener: (args: any[]) => void): this;
203+
on(event: string, listener: Function): this;
204204
on(event: 'connection', listener: (connection: PoolConnection) => any): this;
205205

206206
promise(promiseImpl?: PromiseConstructor): PromisePool;

0 commit comments

Comments
 (0)