@oxc-project/types 0.58.0 → 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 +16 -13
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.58.0",
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 {
@@ -817,10 +818,10 @@ export interface JSXElement extends Span {
817
818
 
818
819
  export interface JSXOpeningElement extends Span {
819
820
  type: 'JSXOpeningElement';
820
- selfClosing: boolean;
821
- name: JSXElementName;
822
821
  attributes: Array<JSXAttributeItem>;
823
- typeParameters: TSTypeParameterInstantiation | null;
822
+ name: JSXElementName;
823
+ selfClosing: boolean;
824
+ typeArguments: TSTypeParameterInstantiation | null;
824
825
  }
825
826
 
826
827
  export interface JSXClosingElement extends Span {
@@ -837,6 +838,8 @@ export interface JSXFragment extends Span {
837
838
 
838
839
  export interface JSXOpeningFragment extends Span {
839
840
  type: 'JSXOpeningFragment';
841
+ attributes: Array<JSXAttributeItem>;
842
+ selfClosing: false;
840
843
  }
841
844
 
842
845
  export interface JSXClosingFragment extends Span {
@@ -1108,7 +1111,7 @@ export interface TSBigIntKeyword extends Span {
1108
1111
  export interface TSTypeReference extends Span {
1109
1112
  type: 'TSTypeReference';
1110
1113
  typeName: TSTypeName;
1111
- typeParameters: TSTypeParameterInstantiation | null;
1114
+ typeArguments: TSTypeParameterInstantiation | null;
1112
1115
  }
1113
1116
 
1114
1117
  export type TSTypeName = IdentifierReference | TSQualifiedName;
@@ -1152,7 +1155,7 @@ export type TSAccessibility = 'private' | 'protected' | 'public';
1152
1155
  export interface TSClassImplements extends Span {
1153
1156
  type: 'TSClassImplements';
1154
1157
  expression: TSTypeName;
1155
- typeParameters: TSTypeParameterInstantiation | null;
1158
+ typeArguments: TSTypeParameterInstantiation | null;
1156
1159
  }
1157
1160
 
1158
1161
  export interface TSInterfaceDeclaration extends Span {
@@ -1231,7 +1234,7 @@ export interface TSIndexSignatureName extends Span {
1231
1234
  export interface TSInterfaceHeritage extends Span {
1232
1235
  type: 'TSInterfaceHeritage';
1233
1236
  expression: Expression;
1234
- typeParameters: TSTypeParameterInstantiation | null;
1237
+ typeArguments: TSTypeParameterInstantiation | null;
1235
1238
  }
1236
1239
 
1237
1240
  export interface TSTypePredicate extends Span {
@@ -1275,7 +1278,7 @@ export interface TSInferType extends Span {
1275
1278
  export interface TSTypeQuery extends Span {
1276
1279
  type: 'TSTypeQuery';
1277
1280
  exprName: TSTypeQueryExprName;
1278
- typeParameters: TSTypeParameterInstantiation | null;
1281
+ typeArguments: TSTypeParameterInstantiation | null;
1279
1282
  }
1280
1283
 
1281
1284
  export type TSTypeQueryExprName = TSImportType | TSTypeName;