We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Serde supports untagged enum variants (added in this PR):
#[derive(Serialize, Deserialize)] #[serde(rename_all = "kebab-case")] pub enum Foo { Bar, Qux, #[serde(untagged)] Other(f64), }
This should result in the following TS type:
export type Foo = "bar" | "qux" | number;
However, if you add Tsify to the derive clause, you get an error instead:
Tsify
unknown serde variant attribute `untagged`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Serde supports untagged enum variants (added in this PR):
This should result in the following TS type:
However, if you add
Tsify
to the derive clause, you get an error instead:The text was updated successfully, but these errors were encountered: