From acf127be3520080d66f55e1f963b8db58452f9b3 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Wed, 13 Mar 2024 00:15:57 +0000 Subject: [PATCH] fix(ast): correct TS type for `ArrayAssignmentTarget` (#2699) `trailing_comma` field in JSON AST is camel case `trailingComma`. --- crates/oxc_ast/src/ast/js.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_ast/src/ast/js.rs b/crates/oxc_ast/src/ast/js.rs index 08487ed2e..f9f2ff775 100644 --- a/crates/oxc_ast/src/ast/js.rs +++ b/crates/oxc_ast/src/ast/js.rs @@ -1027,7 +1027,7 @@ pub enum AssignmentTargetPattern<'a> { // See serializer in serialize.rs #[derive(Debug, Hash, SerAttrs)] #[cfg_attr(feature = "wasm", derive(Tsify))] -#[serde(tag = "type")] +#[serde(tag = "type", rename_all = "camelCase")] pub struct ArrayAssignmentTarget<'a> { #[serde(flatten)] pub span: Span,