-
Notifications
You must be signed in to change notification settings - Fork 729
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
Convert codebase to TypeScript (continued) #1047
base: master
Are you sure you want to change the base?
Conversation
|
Looking good @hugofpsilva! |
Where do we go from here? |
@hugofpsilva Sorry for the very slow reply, haven't had much Luxon time. I'd like the next major version of Luxon to be Typescript based. I'll certainly do a full review of this, but first, how close is it to being done? Ideally, this is how we do it:
|
@icambron Hello 👋 Are you still interested in this rewrite? I've forked luxon project to address this issue #1112. I need not only half-opened intervals, but closed intervals support. Along the way I migrated to Typescript (with huge rewrite to statically verify types). If with new major version we could expand luxon functionality too it would be cool. Also I've found that idea of |
@icambron I haven't had much time for this either unfortunately. From where I was before, I was only lacking a proper build tool unless you want to ship only TS with no pure JS support. Now I believe this code has also fallen behind relating to master. I also had this question in particular @likern If your version is an improvement over this one, by all means, jump the gun 😉 |
Not an improvement of this PR, it's a complete rewrite from scratch. |
I understand, I meant an improvement to luxon. |
@icambron This is my ongoing effort likern/timely#4 |
Hello everyone!
Since @GillesDebunne seems to be AWOL I decided to try and continue his work. I hope he doesn't mind.
Let me start by saying that if his work was a WIP (and it was fantastic), this is a HUGE WIP and will be a major headache to anyone reviewing. I'd review everything, because
I actually have no idea what I'm doing 😅 This edit works for me, but I'm not sure it would work for everyone else.
Sorry 😄
I would have picked up where Gilles left off, weren't it for the dozens of commits on master since he last worked on it.
So I actually restarted from master, and using most of his work and some tweaks of my own and from the folks over at DefinitelyTyped, I finally arrived at no errors with all tests passing.
This is still 99% @GillesDebunne's work and credit for the migration should still go to him.
I just "rebased" and most probably introduced some bugs 🙄 🆘
Notable changes from master:
Notable changes from Gilles's work:
Still to do (guide me oh wise ones 🙏):
Thanks for your time! 🤗
Hugo