Skip to content

Commit

Permalink
refactor(ast/estree): remove redundant ts_type (#9037)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Feb 11, 2025
1 parent 81c81a7 commit cb3240c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions crates/oxc_ast/src/ast/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1713,10 +1713,7 @@ pub struct FormalParameter<'a> {
pub span: Span,
#[ts]
pub decorators: Vec<'a, Decorator<'a>>,
#[estree(
flatten,
ts_type = "(BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern)"
)]
#[estree(flatten)]
pub pattern: BindingPattern<'a>,
#[ts]
pub accessibility: Option<TSAccessibility>,
Expand Down
2 changes: 1 addition & 1 deletion npm/oxc-types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ export type FormalParameter =
override: boolean;
})
& Span
& (BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern);
& BindingPattern;

export type FormalParameterKind = 'FormalParameter' | 'UniqueFormalParameters' | 'ArrowFormalParameters' | 'Signature';

Expand Down

0 comments on commit cb3240c

Please sign in to comment.