We have an interesting problem here, both target Python and TypeScript with our backend/frontend framework, so we need to generate both Python and TS code from a single logic to generate our programming libraries. This creates a lot of trouble, introducing for example Jinja2 templates to be able to auto-generate TS code from our code base, but this means for us, we have to hand-write those templates without typing in the first place and it is a lot of doubled work.
A typed meta language, like Haxe would be great, but unfortunately Haxe does not have real TypeScript support.
There really isn't a good and feasible solution for this.
We have an interesting problem here, both target Python and TypeScript with our backend/frontend framework, so we need to generate both Python and TS code from a single logic to generate our programming libraries. This creates a lot of trouble, introducing for example Jinja2 templates to be able to auto-generate TS code from our code base, but this means for us, we have to hand-write those templates without typing in the first place and it is a lot of doubled work.
A typed meta language, like Haxe would be great, but unfortunately Haxe does not have real TypeScript support.
There really isn't a good and feasible solution for this.