@oxc-project/types 0.60.0 → 0.61.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 +7 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
package/types.d.ts CHANGED
@@ -54,11 +54,17 @@ export type Expression =
54
54
  export interface IdentifierName extends Span {
55
55
  type: 'Identifier';
56
56
  name: string;
57
+ decorators?: [];
58
+ optional?: false;
59
+ typeAnnotation?: null;
57
60
  }
58
61
 
59
62
  export interface IdentifierReference extends Span {
60
63
  type: 'Identifier';
61
64
  name: string;
65
+ decorators?: [];
66
+ optional?: false;
67
+ typeAnnotation?: null;
62
68
  }
63
69
 
64
70
  export interface BindingIdentifier extends Span {
@@ -1286,26 +1292,12 @@ export type TSTypeQueryExprName = TSImportType | TSTypeName;
1286
1292
  export interface TSImportType extends Span {
1287
1293
  type: 'TSImportType';
1288
1294
  argument: TSType;
1289
- options: TSImportAttributes | null;
1295
+ options: ObjectExpression | null;
1290
1296
  qualifier: TSTypeName | null;
1291
1297
  typeArguments: TSTypeParameterInstantiation | null;
1292
1298
  isTypeOf: boolean;
1293
1299
  }
1294
1300
 
1295
- export interface TSImportAttributes extends Span {
1296
- type: 'TSImportAttributes';
1297
- attributesKeyword: IdentifierName;
1298
- elements: Array<TSImportAttribute>;
1299
- }
1300
-
1301
- export interface TSImportAttribute extends Span {
1302
- type: 'TSImportAttribute';
1303
- name: TSImportAttributeName;
1304
- value: Expression;
1305
- }
1306
-
1307
- export type TSImportAttributeName = IdentifierName | StringLiteral;
1308
-
1309
1301
  export interface TSFunctionType extends Span {
1310
1302
  type: 'TSFunctionType';
1311
1303
  typeParameters: TSTypeParameterDeclaration | null;
@@ -1793,8 +1785,6 @@ export type Node =
1793
1785
  | TSInferType
1794
1786
  | TSTypeQuery
1795
1787
  | TSImportType
1796
- | TSImportAttributes
1797
- | TSImportAttribute
1798
1788
  | TSFunctionType
1799
1789
  | TSConstructorType
1800
1790
  | TSMappedType