@oxc-project/types 0.58.1 → 0.59.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 +12 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.58.1",
3
+ "version": "0.59.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
package/types.d.ts CHANGED
@@ -113,7 +113,7 @@ export interface TaggedTemplateExpression extends Span {
113
113
  type: 'TaggedTemplateExpression';
114
114
  tag: Expression;
115
115
  quasi: TemplateLiteral;
116
- typeParameters: TSTypeParameterInstantiation | null;
116
+ typeArguments: TSTypeParameterInstantiation | null;
117
117
  }
118
118
 
119
119
  export interface TemplateElement extends Span {
@@ -156,16 +156,16 @@ export interface PrivateFieldExpression extends Span {
156
156
  export interface CallExpression extends Span {
157
157
  type: 'CallExpression';
158
158
  callee: Expression;
159
- typeParameters: TSTypeParameterInstantiation | null;
160
159
  arguments: Array<Argument>;
161
160
  optional: boolean;
161
+ typeArguments: TSTypeParameterInstantiation | null;
162
162
  }
163
163
 
164
164
  export interface NewExpression extends Span {
165
165
  type: 'NewExpression';
166
166
  callee: Expression;
167
167
  arguments: Array<Argument>;
168
- typeParameters: TSTypeParameterInstantiation | null;
168
+ typeArguments: TSTypeParameterInstantiation | null;
169
169
  }
170
170
 
171
171
  export interface MetaProperty extends Span {
@@ -384,6 +384,7 @@ export interface EmptyStatement extends Span {
384
384
  export interface ExpressionStatement extends Span {
385
385
  type: 'ExpressionStatement';
386
386
  expression: Expression;
387
+ directive: string | null;
387
388
  }
388
389
 
389
390
  export interface IfStatement extends Span {
@@ -601,8 +602,8 @@ export interface Class extends Span {
601
602
  body: ClassBody;
602
603
  decorators: Array<Decorator>;
603
604
  typeParameters: TSTypeParameterDeclaration | null;
604
- superTypeParameters: TSTypeParameterInstantiation | null;
605
- implements: Array<TSClassImplements> | null;
605
+ superTypeArguments: TSTypeParameterInstantiation | null;
606
+ implements: Array<TSClassImplements>;
606
607
  abstract: boolean;
607
608
  declare: boolean;
608
609
  }
@@ -731,8 +732,8 @@ export interface ExportNamedDeclaration extends Span {
731
732
  declaration: Declaration | null;
732
733
  specifiers: Array<ExportSpecifier>;
733
734
  source: StringLiteral | null;
734
- exportKind: ImportOrExportKind;
735
735
  attributes: Array<ImportAttribute>;
736
+ exportKind: ImportOrExportKind;
736
737
  }
737
738
 
738
739
  export interface ExportDefaultDeclaration extends Span {
@@ -820,7 +821,7 @@ export interface JSXOpeningElement extends Span {
820
821
  attributes: Array<JSXAttributeItem>;
821
822
  name: JSXElementName;
822
823
  selfClosing: boolean;
823
- typeParameters: TSTypeParameterInstantiation | null;
824
+ typeArguments: TSTypeParameterInstantiation | null;
824
825
  }
825
826
 
826
827
  export interface JSXClosingElement extends Span {
@@ -1110,7 +1111,7 @@ export interface TSBigIntKeyword extends Span {
1110
1111
  export interface TSTypeReference extends Span {
1111
1112
  type: 'TSTypeReference';
1112
1113
  typeName: TSTypeName;
1113
- typeParameters: TSTypeParameterInstantiation | null;
1114
+ typeArguments: TSTypeParameterInstantiation | null;
1114
1115
  }
1115
1116
 
1116
1117
  export type TSTypeName = IdentifierReference | TSQualifiedName;
@@ -1154,7 +1155,7 @@ export type TSAccessibility = 'private' | 'protected' | 'public';
1154
1155
  export interface TSClassImplements extends Span {
1155
1156
  type: 'TSClassImplements';
1156
1157
  expression: TSTypeName;
1157
- typeParameters: TSTypeParameterInstantiation | null;
1158
+ typeArguments: TSTypeParameterInstantiation | null;
1158
1159
  }
1159
1160
 
1160
1161
  export interface TSInterfaceDeclaration extends Span {
@@ -1233,7 +1234,7 @@ export interface TSIndexSignatureName extends Span {
1233
1234
  export interface TSInterfaceHeritage extends Span {
1234
1235
  type: 'TSInterfaceHeritage';
1235
1236
  expression: Expression;
1236
- typeParameters: TSTypeParameterInstantiation | null;
1237
+ typeArguments: TSTypeParameterInstantiation | null;
1237
1238
  }
1238
1239
 
1239
1240
  export interface TSTypePredicate extends Span {
@@ -1277,7 +1278,7 @@ export interface TSInferType extends Span {
1277
1278
  export interface TSTypeQuery extends Span {
1278
1279
  type: 'TSTypeQuery';
1279
1280
  exprName: TSTypeQueryExprName;
1280
- typeParameters: TSTypeParameterInstantiation | null;
1281
+ typeArguments: TSTypeParameterInstantiation | null;
1281
1282
  }
1282
1283
 
1283
1284
  export type TSTypeQueryExprName = TSImportType | TSTypeName;