typeshare
typeshare copied to clipboard
Enums with numeric discriminants
For typescript generation, I'd have expected this
#[derive(Deserialize, Serialize)]
#[typeshare]
enum Enum {
Foo = 3,
Bar = 2,
Baz = 1,
}
to be output as ...
export enum Enum {
Foo = 3,
Bar = 2,
Baz = 1,
}
but it is output as
export enum Enum {
Foo = "Foo",
Bar = "Bar",
Baz = "Baz",
}
Hello, and thank you for submitting an issue! We will be investigating this soon.
This is the exact issue I was looking to solve with changing from ts-rs. Any status updates?