Can I change the directory for #[ts(export)] -exported stuff? #66
-
it's |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes. You can use |
Beta Was this translation helpful? Give feedback.
-
This is documented here, btw: https://docs.rs/ts-rs/latest/ts_rs/trait.TS.html#container-attributes |
Beta Was this translation helpful? Give feedback.
Yes. You can use
#[ts(export_to = "../frontend/src/MyType.ts")]
for this.Currently, you'll have to do this for every type. In the future, we want to support more fine-grained configuration through a config file. This is sadly blocked by this