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(rename = ...)
When serde(rename = ...) is used the exported type is named to the rename value, but if this type is referenced elsewhere, the original name is used.
rename
e.g.
#[derive(Debug, Clone, Serialize, Deserialize, Tsify)] #[serde(rename = "foo")] pub struct Foo { x: i32, } #[derive(Debug, Clone, Serialize, Deserialize, Tsify)] pub struct Bar { foo: Foo, }
produces
export interface foo { x: number; } export interface Bar { foo: Foo; }
which refers to a non-existent Foo type.
Foo
The text was updated successfully, but these errors were encountered:
JSXElementName::IdentifierReference
JSXMemberExpressionObject::IdentifierReference
Successfully merging a pull request may close this issue.
When
serde(rename = ...)
is used the exported type is named to therename
value, but if this type is referenced elsewhere, the original name is used.e.g.
produces
which refers to a non-existent
Foo
type.The text was updated successfully, but these errors were encountered: