node-mysql2
node-mysql2 copied to clipboard
Connection.query() lacks typings
Despite having both mysql2 and @types/node installed, connection.query does not seem to have the proper types defined, despite being a valid and documented command:
https://sidorares.github.io/node-mysql2/docs/documentation/typescript-examples
Any suggestions?
Hi, @thomasgauvin 🙋🏻♂️
Can you share your tsconfig.json to try to reproduce this behavior?
Probably related, when the tsconfig.json overwrites the types path, even in node_modules, it will ignore the @types/node: https://github.com/sidorares/node-mysql2/issues/3023#issuecomment-2340241159