@oxc-project/types 0.69.0 → 0.71.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 +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.69.0",
3
+ "version": "0.71.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
package/types.d.ts CHANGED
@@ -600,8 +600,10 @@ export type FunctionType =
600
600
  export interface FormalParameterRest extends Span {
601
601
  type: 'RestElement';
602
602
  argument: BindingPatternKind;
603
- typeAnnotation: TSTypeAnnotation | null;
604
- optional: boolean;
603
+ decorators?: [];
604
+ optional?: boolean;
605
+ typeAnnotation?: TSTypeAnnotation | null;
606
+ value?: null;
605
607
  }
606
608
 
607
609
  export type FormalParameter =
@@ -740,6 +742,7 @@ export interface ImportExpression extends Span {
740
742
  type: 'ImportExpression';
741
743
  source: Expression;
742
744
  options: Expression | null;
745
+ phase?: ImportPhase | null;
743
746
  }
744
747
 
745
748
  export interface ImportDeclaration extends Span {
@@ -747,6 +750,7 @@ export interface ImportDeclaration extends Span {
747
750
  specifiers: Array<ImportDeclarationSpecifier>;
748
751
  source: StringLiteral;
749
752
  attributes: Array<ImportAttribute>;
753
+ phase: ImportPhase | null;
750
754
  importKind?: ImportOrExportKind;
751
755
  }
752
756