-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
WIP: TypeScript #899
base: master
Are you sure you want to change the base?
WIP: TypeScript #899
Conversation
Thanks , I cannot look right now |
I've gotten TypeScript errors down to the following:
There are two things that should probably be addressed in a separate PR.
|
@tommyhtran hey! Thanks for your work on this front. I'm not in friendly relationships with typescript 😆 But yea. I can't help much except the few things. I really start hating and rage-quit the editor and coding for some time when I got to some more deep TS codebase. 🤣 🤣 Not sure how I'll feel here too 😆 As about As about the second, I really am not familiar with 7-8bits thing. It's there just because legacy reasons :D Jokes aside, what you're saying looks about right at first glance. But also... the fact that it was there for so many years, and no one even tried (because we wouldn't be able) to use I'll review it at a later point, but I don't think a review is much needed. Maybe the only thing that I could ask is to try with separate file approach - e.g. just a typings file that we will distribute with the package. Just to see how it looks like. |
Another approach is to not change the files to TypeScript and just add typings via JSDoc. And as said before, use a separate typings file for the more complicated types. |
Is this still WIP or is it abandoned? |
@hichemfantar see comment to vote #830 (comment) |
This PR aims to convert the source code into TypeScript without major refactoring. Benchmarks, examples, and tests are excluded from the scope of this PR.
I'm aware of #854 already open, but development on it appears to have stalled. This is simply my attempt at converting this project.
This PR addresses #774 and #830.
My test results are at parity with commit 493ec88 but with one exception due to two tests using the same port.
strictNullChecks
has been disabled and is pending future refactoring.The following errors are currently reported by the TypeScript compiler:
open/close
I would appreciate any help with fixing these errors.