types / mysql2

Typings for https://github.com/sidorares/node-mysql2
ISC License
41 stars 23 forks source link

Typing errors using typescript 3.8 #42

Closed insidewhy closed 4 years ago

insidewhy commented 4 years ago
api_1        | [0] node_modules/@types/mysql/index.d.ts(2,1): error TS2440: Import declaration conflicts with local declaration of 'Connection'.
api_1        | [0] node_modules/@types/mysql/index.d.ts(4,1): error TS2440: Import declaration conflicts with local declaration of 'PoolConnection'.
api_1        | [0] node_modules/@types/mysql/index.d.ts(5,1): error TS2440: Import declaration conflicts with local declaration of 'Pool'.
api_1        | [0] node_modules/@types/mysql/index.d.ts(7,1): error TS2440: Import declaration conflicts with local declaration of 'PoolCluster'.
api_1        | [0] node_modules/@types/mysql/index.d.ts(9,1): error TS2440: Import declaration conflicts with local declaration of 'Query'.
insidewhy commented 4 years ago

Hm it seems yarn keeps reverting to an older version of the package, probably a bug there.

insidewhy commented 4 years ago

Oh I see, the error is in the package this depends on... @types/mysql.