-
Notifications
You must be signed in to change notification settings - Fork 79
Generate types declarations #466
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
Comments
This is a really interesting idea! I think it would improve the developer experience in TypeScript by a lot. It would be interesting to see a proof-of-concept prototype of this. If you're up for it, I think the best place to start would be |
@stasm Hey, I just launched the first proof of concept version: https://github.com/macabeus/fluent-typescript-loader 🎉 At this moment, I'm generating the Anyway, We would improve types such as |
Very exciting, @macabeus! I can't wait to try this out in a project! I looked at the implementation, and I'd like to provide some high level feedback:
I hope this help. Let me know if you have any questions! |
@stasm Hey, I just released a new version: https://github.com/macabeus/fluent-typescript/releases/tag/0.0.3 ! 🎉 Now I think that this tool is so much more stable. Now I want to add support to |
Nice work, @macabeus! I installed it in a test project, and I was impressed by the results! It looks like the project is maturing nicely. I have two pieces of feedback, but overall it looks great. I hope more people will start using it!
Nice work! |
@stasm I was very busy on the last couple of weeks, but finally I added support to https://github.com/macabeus/fluent-typescript/releases/tag/0.0.4 |
Currently we could define messages with variables:
and generating a bundle, we could use that on our code:
But since there are lacking type informations, TS can't check if I'm writing all variables that message requires, or if I typed something wrong, as well as it's missing autocomplete.
We could improve even more if we could read the comments
On this small example, a valid type declaration would be:
The text was updated successfully, but these errors were encountered: