Interface 'Pool' incorrectly extends interface 'Connection'.
trevorr opened this issue · 0 comments
trevorr commented
The most recent commit fails to compile (using TS 3.8.3):
node_modules/@types/mysql2/index.d.ts:19:18 - error TS2430: Interface 'Pool' incorrectly extends interface 'Connection'.
Types of property 'end' are incompatible.
Type '(callback?: ((err: Error) => any) | undefined) => void' is not assignable to type '{ (callback?: ((err: QueryError | null) => void) | undefined): void; (options: any, callback?: ((err: QueryError | null) => void) | undefined): void; }'.
Types of parameters 'callback' and 'callback' are incompatible.
Types of parameters 'err' and 'err' are incompatible.
Type 'Error' is missing the following properties from type 'QueryError': code, fatal
19 export interface Pool extends mysql.Connection {
~~~~