You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just watched the video presenting this tool, and it looks amazing! Thanks for the hard work!
I have one suggestion - can we have a CLI tool that goes over the .tb files and generates the types from them?
Since this is doing code-generation, I'd like to have a way to verify, in CI, that the current generated code matches the type-buddy files.
Additionally, a CLI tool would mean that it's also usable for people using IDEs without the plugin.
Thanks!
The text was updated successfully, but these errors were encountered:
A CLI tool would also benefit those using different IDEs, but I have another, more intriguing solution.
With babel transformers we could make it automatically convert a custom syntax, for example, type function Simple<T> {} to TS's syntax type Simple<T> = ..., and that output would then be used by the tsc to compile.
Usually, I would proceed with that solution, make a POC develop the idea to its completion, and then create a pull request, but I can see a problem we will face ahead of time, and it is the syntax highlighting in the different IDEs, that won't recognize the type function syntax, and for that, I don't have a solution.
A more permanent solution would be filing a TypeScript proposal to incorporate this feature in the TypeScript language natively.
I just watched the video presenting this tool, and it looks amazing! Thanks for the hard work!
I have one suggestion - can we have a CLI tool that goes over the
.tb
files and generates the types from them?Since this is doing code-generation, I'd like to have a way to verify, in CI, that the current generated code matches the type-buddy files.
Additionally, a CLI tool would mean that it's also usable for people using IDEs without the plugin.
Thanks!
The text was updated successfully, but these errors were encountered: