@oxc-project/types 0.61.2 → 0.63.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 +27 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.61.2",
3
+ "version": "0.63.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
package/types.d.ts CHANGED
@@ -78,6 +78,9 @@ export interface BindingIdentifier extends Span {
78
78
  export interface LabelIdentifier extends Span {
79
79
  type: 'Identifier';
80
80
  name: string;
81
+ decorators?: [];
82
+ optional?: false;
83
+ typeAnnotation?: null;
81
84
  }
82
85
 
83
86
  export interface ThisExpression extends Span {
@@ -106,6 +109,7 @@ export interface ObjectProperty extends Span {
106
109
  key: PropertyKey;
107
110
  value: Expression;
108
111
  kind: PropertyKind;
112
+ optional?: false;
109
113
  }
110
114
 
111
115
  export type PropertyKey = IdentifierName | PrivateIdentifier | Expression;
@@ -522,6 +526,7 @@ export interface AssignmentPattern extends Span {
522
526
  export interface ObjectPattern extends Span {
523
527
  type: 'ObjectPattern';
524
528
  properties: Array<BindingProperty | BindingRestElement>;
529
+ decorators?: [];
525
530
  }
526
531
 
527
532
  export interface BindingProperty extends Span {
@@ -532,6 +537,7 @@ export interface BindingProperty extends Span {
532
537
  key: PropertyKey;
533
538
  value: BindingPattern;
534
539
  kind: 'init';
540
+ optional?: false;
535
541
  }
536
542
 
537
543
  export interface ArrayPattern extends Span {
@@ -691,6 +697,10 @@ export interface AccessorProperty extends Span {
691
697
  definite?: boolean;
692
698
  typeAnnotation?: TSTypeAnnotation | null;
693
699
  accessibility?: TSAccessibility | null;
700
+ optional?: false;
701
+ override?: false;
702
+ readonly?: false;
703
+ declare?: false;
694
704
  }
695
705
 
696
706
  export interface ImportExpression extends Span {
@@ -748,6 +758,7 @@ export interface ExportNamedDeclaration extends Span {
748
758
  export interface ExportDefaultDeclaration extends Span {
749
759
  type: 'ExportDefaultDeclaration';
750
760
  declaration: ExportDefaultDeclarationKind;
761
+ exportKind?: 'value';
751
762
  }
752
763
 
753
764
  export interface ExportAllDeclaration extends Span {
@@ -928,11 +939,16 @@ export interface TSThisParameter extends Span {
928
939
  export interface TSEnumDeclaration extends Span {
929
940
  type: 'TSEnumDeclaration';
930
941
  id: BindingIdentifier;
931
- members: Array<TSEnumMember>;
942
+ body: TSEnumBody;
932
943
  const: boolean;
933
944
  declare: boolean;
934
945
  }
935
946
 
947
+ export interface TSEnumBody extends Span {
948
+ type: 'TSEnumBody';
949
+ members: TSEnumMember[];
950
+ }
951
+
936
952
  export interface TSEnumMember extends Span {
937
953
  type: 'TSEnumMember';
938
954
  id: TSEnumMemberName;
@@ -1173,7 +1189,7 @@ export interface TSClassImplements extends Span {
1173
1189
  export interface TSInterfaceDeclaration extends Span {
1174
1190
  type: 'TSInterfaceDeclaration';
1175
1191
  id: BindingIdentifier;
1176
- extends: Array<TSInterfaceHeritage> | null;
1192
+ extends: Array<TSInterfaceHeritage>;
1177
1193
  typeParameters: TSTypeParameterDeclaration | null;
1178
1194
  body: TSInterfaceBody;
1179
1195
  declare: boolean;
@@ -1191,6 +1207,8 @@ export interface TSPropertySignature extends Span {
1191
1207
  readonly: boolean;
1192
1208
  key: PropertyKey;
1193
1209
  typeAnnotation: TSTypeAnnotation | null;
1210
+ accessibility: null;
1211
+ static: false;
1194
1212
  }
1195
1213
 
1196
1214
  export type TSSignature =
@@ -1206,7 +1224,7 @@ export interface TSIndexSignature extends Span {
1206
1224
  typeAnnotation: TSTypeAnnotation;
1207
1225
  readonly: boolean;
1208
1226
  static: boolean;
1209
- accessibility?: null;
1227
+ accessibility: null;
1210
1228
  }
1211
1229
 
1212
1230
  export interface TSCallSignatureDeclaration extends Span {
@@ -1225,9 +1243,11 @@ export interface TSMethodSignature extends Span {
1225
1243
  optional: boolean;
1226
1244
  kind: TSMethodSignatureKind;
1227
1245
  typeParameters: TSTypeParameterDeclaration | null;
1228
- thisParam: TSThisParameter | null;
1229
1246
  params: ParamPattern[];
1230
1247
  returnType: TSTypeAnnotation | null;
1248
+ accessibility: null;
1249
+ readonly: false;
1250
+ static: false;
1231
1251
  }
1232
1252
 
1233
1253
  export interface TSConstructSignatureDeclaration extends Span {
@@ -1241,8 +1261,8 @@ export interface TSIndexSignatureName extends Span {
1241
1261
  type: 'Identifier';
1242
1262
  name: string;
1243
1263
  typeAnnotation: TSTypeAnnotation;
1244
- decorators?: [];
1245
- optional?: false;
1264
+ decorators: [];
1265
+ optional: false;
1246
1266
  }
1247
1267
 
1248
1268
  export interface TSInterfaceHeritage extends Span {
@@ -1304,7 +1324,6 @@ export interface TSImportType extends Span {
1304
1324
  options: ObjectExpression | null;
1305
1325
  qualifier: TSTypeName | null;
1306
1326
  typeArguments: TSTypeParameterInstantiation | null;
1307
- isTypeOf: boolean;
1308
1327
  }
1309
1328
 
1310
1329
  export interface TSFunctionType extends Span {
@@ -1468,7 +1487,7 @@ export interface Span {
1468
1487
  end: number;
1469
1488
  }
1470
1489
 
1471
- export type ModuleKind = 'script' | 'module' | 'unambiguous';
1490
+ export type ModuleKind = 'script' | 'module';
1472
1491
 
1473
1492
  export interface Pattern extends Span {
1474
1493
  type: 'Pattern';