fix(ast): correct TS type for ArrayAssignmentTarget (#2699)

`trailing_comma` field in JSON AST is camel case `trailingComma`.
This commit is contained in:
overlookmotel 2024-03-13 00:15:57 +00:00 committed by GitHub
parent 89e8d1526f
commit acf127be35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1027,7 +1027,7 @@ pub enum AssignmentTargetPattern<'a> {
// See serializer in serialize.rs // See serializer in serialize.rs
#[derive(Debug, Hash, SerAttrs)] #[derive(Debug, Hash, SerAttrs)]
#[cfg_attr(feature = "wasm", derive(Tsify))] #[cfg_attr(feature = "wasm", derive(Tsify))]
#[serde(tag = "type")] #[serde(tag = "type", rename_all = "camelCase")]
pub struct ArrayAssignmentTarget<'a> { pub struct ArrayAssignmentTarget<'a> {
#[serde(flatten)] #[serde(flatten)]
pub span: Span, pub span: Span,