@oxc-project/types 0.105.0 → 0.106.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +2 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.105.0",
3
+ "version": "0.106.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
package/types.d.ts CHANGED
@@ -589,16 +589,7 @@ export interface DebuggerStatement extends Span {
589
589
  parent?: Node;
590
590
  }
591
591
 
592
- export type BindingPattern = {
593
- optional?: boolean;
594
- typeAnnotation?: TSTypeAnnotation | null;
595
- } & (BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern);
596
-
597
- export type BindingPatternKind =
598
- | BindingIdentifier
599
- | ObjectPattern
600
- | ArrayPattern
601
- | AssignmentPattern;
592
+ export type BindingPattern = BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern;
602
593
 
603
594
  export interface AssignmentPattern extends Span {
604
595
  type: "AssignmentPattern";
@@ -674,7 +665,7 @@ export type FunctionType =
674
665
 
675
666
  export interface FormalParameterRest extends Span {
676
667
  type: "RestElement";
677
- argument: BindingPatternKind;
668
+ argument: BindingPattern;
678
669
  decorators?: [];
679
670
  optional?: boolean;
680
671
  typeAnnotation?: TSTypeAnnotation | null;