Skip to content

Commit 1614c72

Browse files
committed
fix(ast/estree): fix TS type for AssignmentTargetPropertyIdentifier
1 parent b7e1ccc commit 1614c72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/oxc_ast/src/ast/js.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ pub enum AssignmentTargetProperty<'a> {
898898
#[estree(
899899
rename = "Property",
900900
add_fields(kind = "\"init\"", method = false, shorthand = true, computed = false),
901-
add_ts = "kind: \"init\"; method: false; shorthand: false; computed: false"
901+
add_ts = "kind: \"init\"; method: false; shorthand: true; computed: false"
902902
)]
903903
pub struct AssignmentTargetPropertyIdentifier<'a> {
904904
pub span: Span,

npm/oxc-types/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export interface AssignmentTargetPropertyIdentifier extends Span {
273273
value: IdentifierReference | AssignmentTargetWithDefault;
274274
kind: 'init';
275275
method: false;
276-
shorthand: false;
276+
shorthand: true;
277277
computed: false;
278278
}
279279

0 commit comments

Comments
 (0)