@oxc-project/types 0.95.0 → 0.97.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 +9 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.95.0",
3
+ "version": "0.97.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "type": "module",
6
6
  "keywords": [
package/types.d.ts CHANGED
@@ -583,12 +583,10 @@ export interface DebuggerStatement extends Span {
583
583
  parent?: Node;
584
584
  }
585
585
 
586
- export type BindingPattern =
587
- & ({
588
- optional?: boolean;
589
- typeAnnotation?: TSTypeAnnotation | null;
590
- })
591
- & (BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern);
586
+ export type BindingPattern = {
587
+ optional?: boolean;
588
+ typeAnnotation?: TSTypeAnnotation | null;
589
+ } & (BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern);
592
590
 
593
591
  export type BindingPatternKind = BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern;
594
592
 
@@ -671,13 +669,12 @@ export interface FormalParameterRest extends Span {
671
669
  optional?: boolean;
672
670
  typeAnnotation?: TSTypeAnnotation | null;
673
671
  value?: null;
672
+ parent?: Node;
674
673
  }
675
674
 
676
- export type FormalParameter =
677
- & ({
678
- decorators?: Array<Decorator>;
679
- })
680
- & BindingPattern;
675
+ export type FormalParameter = {
676
+ decorators?: Array<Decorator>;
677
+ } & BindingPattern;
681
678
 
682
679
  export interface TSParameterProperty extends Span {
683
680
  type: 'TSParameterProperty';
@@ -687,6 +684,7 @@ export interface TSParameterProperty extends Span {
687
684
  parameter: FormalParameter;
688
685
  readonly: boolean;
689
686
  static: boolean;
687
+ parent?: Node;
690
688
  }
691
689
 
692
690
  export interface FunctionBody extends Span {