[SPIKE] Consider auto-generating TS types for entries
There are several libraries to automate generation of rust types. We could consider using them to generate TS types for custom entry types to simplify the scaffolding logic a bit.
Thanks for bringing this up, the manual codegen we have now is not really sufficient and I don't see the need to re-invent the wheel with Rust to TS codegen. I had been looking into this for a while actually, specifically the typeshare and ts-rs crates.
The others you share look promising as well, especially specta.
The end goal for us would be finding a way to convert an EntryDefinition based off what the dev provides us via the cli into TS types using one of the crates, I couldn't find a programatic way to do this yet with the crates I tried out initially, but I can look into this further again as a spike.
Hello. Not sure if it solves your problem but I made this tool that generates TS bindings for a zome: https://github.com/ddd-mtl/zits