Out of curiosity and to learn more about nim and compilers I started an effort to add typescript output to nimony (nim 3.0). Similar to the js output of nim 2, but fully typed TS. It is far from complete or correct yet, but I thought you might find it interesting.
My eventual goal if I could get it to work well is to write Nim and emit readable TS that could be used in a react native app (or anywhere else that needs js/ts) rather than going the C or wasm route. Not really sure if it's worth pursuing further given improvements in react native binding to C (nitro-modules) and wasm in the browser, but the start of it is there if you're curious.
https://github.com/evelant/nimony/tree/feat/tsgen
Out of curiosity and to learn more about nim and compilers I started an effort to add typescript output to nimony (nim 3.0). Similar to the js output of nim 2, but fully typed TS. It is far from complete or correct yet, but I thought you might find it interesting.
My eventual goal if I could get it to work well is to write Nim and emit readable TS that could be used in a react native app (or anywhere else that needs js/ts) rather than going the C or wasm route. Not really sure if it's worth pursuing further given improvements in react native binding to C (nitro-modules) and wasm in the browser, but the start of it is there if you're curious.
https://github.com/evelant/nimony/tree/feat/tsgen