Skip to content

Commit

Permalink
fix(ast): serialize TSParenthesizedType with camelCase (#5199)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Aug 25, 2024
1 parent bf49f33 commit 8ebc23f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/oxc_ast/src/ast/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2265,6 +2265,7 @@ pub enum AccessorPropertyType {
#[derive(Debug, Hash)]
#[generate_derive(CloneIn, GetSpan, GetSpanMut)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(rename_all = "camelCase")]
pub struct AccessorProperty<'a> {
pub r#type: AccessorPropertyType,
#[serde(flatten)]
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_ast/src/ast/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ pub struct TSIntersectionType<'a> {
#[derive(Debug, Hash)]
#[generate_derive(CloneIn, GetSpan, GetSpanMut)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(tag = "type")]
#[serde(tag = "type", rename_all = "camelCase")]
pub struct TSParenthesizedType<'a> {
#[serde(flatten)]
pub span: Span,
Expand Down

0 comments on commit 8ebc23f

Please sign in to comment.