-
-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Typing error in v3.0.0-rc1 Interface 'PoolConnection' cannot simultaneously extend types 'PoolConnection' and 'Connection' #1722
Comments
could you post a snippet of typescript code to reproduce the error @abentpole ? |
@sidorares Just a matter of importing the promise version of the library in a Typescript project with So to replicate it:
|
Same problem happening to me. Both with |
Same issue with version |
Same issue with typescript version |
So for a concrete example - When faced with this error:
The items indicated are: From unprepare(sql: string): mysql.PrepareStatementInfo; From unprepare(sql: string): any; Experimented a little but unsure how to progress. This seems to be the item over in Typescript that would make this work as specced, but clearly not being built any time soon: |
Get this issue, too, when trying to update from Is there an ETA to get this in place? Thanks! |
Same problem here! |
I don't think @sidorares is going to fix this. See #1792. |
I really want to fix, just don't have enough time. If anyone wants to help that would be great |
So, for now the solution is to stick with an old version? (before |
|
* 🔥 Remove webhook functionality * 🚧 Reimplement commands * 🔥 Remove unnecessary dependencies * 📝 Update README * ⬇ Downgrade mysql2 to fix build error. See sidorares/node-mysql2#1722 * Remove 14.x node support * 🐛 Update pm2 ecosystem * 🔍 Replace tslint with eslint * 🐛 Ensure clean works on first attempt * ⬆ Increase node version on CircleCI * 📚 Improve command architecture * 💄 Finalize linted code * 🔥 Remove ts-clean in favour of --clean flag in tsc * 🐛 Work in progress to fix running * 🐛 Fix all newly introduced bugs based on testing * Add members and messages intents to client * Update node image
Once the declare class PoolConnection extends Connection {
connection: Connection;
release(): void;
} Then it doesn't need to re extends the export interface PoolConnection extends mysql.PoolConnection, Connection {
promise(promiseImpl?: PromiseConstructor): PromisePoolConnection;
} So, just by removing the export interface PoolConnection extends mysql.PoolConnection {
promise(promiseImpl?: PromiseConstructor): PromisePoolConnection;
} I cloned the @sidorares, can I submit a |
@wellwelwel should be in npm as v3.2.1 in a minute https://github.com/sidorares/node-mysql2/releases/tag/v3.2.1 |
@abentpole give v3.2.1 a try and if the issue is fixed we can close it |
Does not seem to fix it:
|
Sorry @sidorares, I missed your first ping. Gave this a test and can confirm it doesn't happen in Thanks! |
Hello, I was giving v3.0.0-rc1 a spin and noticed the following issue:
This was noticed with Typescript version 4.5.5, though I also just tested with 4.9.3 and confirmed it occurs there too.
Edit: A note that for this to come up when the library is in use; ensure
skipLibCheck
isn'ttrue
.The text was updated successfully, but these errors were encountered: