Skip to content
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

Consider auto-generating TS types for entries #403

Open
mattyg opened this issue Oct 26, 2024 · 1 comment
Open

Consider auto-generating TS types for entries #403

mattyg opened this issue Oct 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mattyg
Copy link
Member

mattyg commented Oct 26, 2024

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.

@c12i
Copy link
Collaborator

c12i commented Oct 29, 2024

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.

@c12i c12i self-assigned this Oct 29, 2024
@c12i c12i added the enhancement New feature or request label Oct 29, 2024
@c12i c12i added this to Holochain Oct 29, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Holochain Oct 29, 2024
@c12i c12i moved this from Backlog to Ready for refinement in Holochain Nov 12, 2024
@c12i c12i removed their assignment Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready for refinement
Development

No branches or pull requests

2 participants