-
-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add typescript types #1028
Add typescript types #1028
Conversation
@mike-marcacci Be aware that you should also include the files ( from this repository as well:
|
Yes, I actually began a rewrite of these types, based mostly on those. |
How's this going? |
This is sick. Just wondering what is blocking ? Is there anything I can do to help ? |
hey @mike-marcacci , thanks for starting this. Would you like somebody to pick up from where you stopped? |
Hi! |
@Jolg42 looks like not, any help is appreciated here |
Does mysql2 brings anything to mariadb-connector in terms of features or whatever? I mean:
Is there any objective reason one would select mysql or mysql2 over mariadb-connector. PS: this is not intended to be provocative |
@FredericLatour not sure if mariadb connector supports prepared statements, looks like not |
@sidorares is there anything blocking this PR at the moment? yes, @mike-marcacci was going to refactor some stuff, but it looks like if you just land this as-is it gets you to parity with |
Ah hi folks, so sorry for the silence: I did indeed get sidetracked from this as other priorities emerged. It's likely that I will need to pick this back up in a couple months (if nobody else does first), but can't in the immediate term. |
@mike-marcacci thanks for what you already contributed. Do you think we can merge what's there now and you continue when you have time with a separate PR? |
For those |
I am desperate for this and would like to help. Is this the latest version of the TS changes, and can anyone confirm what is left to do? |
Agree, let's get this merged. It will be easier to fix any missing types after the fact as we run into them. There have been a few commits to https://github.com/types/mysql2 as well. |
I've pulled the remote repo locally and rebased / fixed merge conflicts. Want me to submit another PR as I don't have access to this source otherwise? |
Submitted fixed merge conflicts in #1204. You can close this PR. Once you publish the next release let me know and I'll test the types and attempt to push some updates. |
tanks everyone. @Bidthedog this is in npm now as v2.2.0 |
@sidorares I've upgraded the package, but found no |
There are types in node_modules/@types/mysql, but the base .d.ts files aren't included. I'll investigate - I just resolved the conflicts, didn't put any time into figuring out how it all works :) |
oops, maybe we need to update |
actually nevermind, I'll do that now |
@xfoxfu @Bidthedog published v2.2.1 which should include type files now |
Thanks, busy with "paid" work stuff atm, but will help out with future PRs once I get my head around the repo :) |
This fix speed is amazing! Thanks! |
any
is used