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

ts-rs support #138

Open
fidoriel opened this issue Oct 24, 2024 · 1 comment
Open

ts-rs support #138

fidoriel opened this issue Oct 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@fidoriel
Copy link

Hey,

it would be nice to have support for adding the imports and derive macros from ts-rs automatically to structs. Then typescript bindings can be generated based on the models. Very helpful for a crud api.
see https://github.com/Aleph-Alpha/ts-rs?tab=readme-ov-file#get-started

Something like pub ts_rs_support in GenerationConfigOpts would be nice.

@hasezoey hasezoey added the enhancement New feature or request label Oct 24, 2024
@hasezoey
Copy link
Collaborator

currently in dsync tsync is already supported, which to my knowledge is similar to ts-rs, so i dont see a reason why not to support it.

though it would likely be better to implement some kind of hook system (with events like [import, struct beginning / attributes, field] and likely more) for more expand-ability (in library mode), instead of having to wait for it to be supported in dsync itself.

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
None yet
Development

No branches or pull requests

2 participants