diff --git a/crates/oxc_ast/src/ast/js.rs b/crates/oxc_ast/src/ast/js.rs index 51bbfe7be..6ac572a98 100644 --- a/crates/oxc_ast/src/ast/js.rs +++ b/crates/oxc_ast/src/ast/js.rs @@ -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)] diff --git a/crates/oxc_ast/src/ast/ts.rs b/crates/oxc_ast/src/ast/ts.rs index b50cdb93c..a96c2f556 100644 --- a/crates/oxc_ast/src/ast/ts.rs +++ b/crates/oxc_ast/src/ast/ts.rs @@ -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,