@oxc-project/types 0.63.0 → 0.64.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.
- package/package.json +1 -1
- package/types.d.ts +31 -14
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -258,16 +258,26 @@ export type AssignmentTargetPattern = ArrayAssignmentTarget | ObjectAssignmentTa
|
|
|
258
258
|
export interface ArrayAssignmentTarget extends Span {
|
|
259
259
|
type: 'ArrayPattern';
|
|
260
260
|
elements: Array<AssignmentTargetMaybeDefault | AssignmentTargetRest | null>;
|
|
261
|
+
decorators?: [];
|
|
262
|
+
optional?: false;
|
|
263
|
+
typeAnnotation?: null;
|
|
261
264
|
}
|
|
262
265
|
|
|
263
266
|
export interface ObjectAssignmentTarget extends Span {
|
|
264
267
|
type: 'ObjectPattern';
|
|
265
268
|
properties: Array<AssignmentTargetProperty | AssignmentTargetRest>;
|
|
269
|
+
decorators?: [];
|
|
270
|
+
optional?: false;
|
|
271
|
+
typeAnnotation?: null;
|
|
266
272
|
}
|
|
267
273
|
|
|
268
274
|
export interface AssignmentTargetRest extends Span {
|
|
269
275
|
type: 'RestElement';
|
|
270
276
|
argument: AssignmentTarget;
|
|
277
|
+
decorators?: [];
|
|
278
|
+
optional?: false;
|
|
279
|
+
typeAnnotation?: null;
|
|
280
|
+
value?: null;
|
|
271
281
|
}
|
|
272
282
|
|
|
273
283
|
export type AssignmentTargetMaybeDefault = AssignmentTargetWithDefault | AssignmentTarget;
|
|
@@ -288,6 +298,7 @@ export interface AssignmentTargetPropertyIdentifier extends Span {
|
|
|
288
298
|
key: IdentifierReference;
|
|
289
299
|
value: IdentifierReference | AssignmentTargetWithDefault;
|
|
290
300
|
kind: 'init';
|
|
301
|
+
optional?: false;
|
|
291
302
|
}
|
|
292
303
|
|
|
293
304
|
export interface AssignmentTargetPropertyProperty extends Span {
|
|
@@ -298,6 +309,7 @@ export interface AssignmentTargetPropertyProperty extends Span {
|
|
|
298
309
|
key: PropertyKey;
|
|
299
310
|
value: AssignmentTargetMaybeDefault;
|
|
300
311
|
kind: 'init';
|
|
312
|
+
optional?: false;
|
|
301
313
|
}
|
|
302
314
|
|
|
303
315
|
export interface SequenceExpression extends Span {
|
|
@@ -551,6 +563,10 @@ export interface ArrayPattern extends Span {
|
|
|
551
563
|
export interface BindingRestElement extends Span {
|
|
552
564
|
type: 'RestElement';
|
|
553
565
|
argument: BindingPattern;
|
|
566
|
+
decorators?: [];
|
|
567
|
+
optional?: false;
|
|
568
|
+
typeAnnotation?: null;
|
|
569
|
+
value?: null;
|
|
554
570
|
}
|
|
555
571
|
|
|
556
572
|
export interface Function extends Span {
|
|
@@ -698,7 +714,7 @@ export interface AccessorProperty extends Span {
|
|
|
698
714
|
typeAnnotation?: TSTypeAnnotation | null;
|
|
699
715
|
accessibility?: TSAccessibility | null;
|
|
700
716
|
optional?: false;
|
|
701
|
-
override?:
|
|
717
|
+
override?: boolean;
|
|
702
718
|
readonly?: false;
|
|
703
719
|
declare?: false;
|
|
704
720
|
}
|
|
@@ -858,8 +874,8 @@ export interface JSXFragment extends Span {
|
|
|
858
874
|
|
|
859
875
|
export interface JSXOpeningFragment extends Span {
|
|
860
876
|
type: 'JSXOpeningFragment';
|
|
861
|
-
attributes
|
|
862
|
-
selfClosing
|
|
877
|
+
attributes?: [];
|
|
878
|
+
selfClosing?: false;
|
|
863
879
|
}
|
|
864
880
|
|
|
865
881
|
export interface JSXClosingFragment extends Span {
|
|
@@ -946,16 +962,17 @@ export interface TSEnumDeclaration extends Span {
|
|
|
946
962
|
|
|
947
963
|
export interface TSEnumBody extends Span {
|
|
948
964
|
type: 'TSEnumBody';
|
|
949
|
-
members: TSEnumMember
|
|
965
|
+
members: Array<TSEnumMember>;
|
|
950
966
|
}
|
|
951
967
|
|
|
952
968
|
export interface TSEnumMember extends Span {
|
|
953
969
|
type: 'TSEnumMember';
|
|
954
970
|
id: TSEnumMemberName;
|
|
971
|
+
computed: boolean;
|
|
955
972
|
initializer: Expression | null;
|
|
956
973
|
}
|
|
957
974
|
|
|
958
|
-
export type TSEnumMemberName = IdentifierName | StringLiteral;
|
|
975
|
+
export type TSEnumMemberName = IdentifierName | StringLiteral | TemplateLiteral;
|
|
959
976
|
|
|
960
977
|
export interface TSTypeAnnotation extends Span {
|
|
961
978
|
type: 'TSTypeAnnotation';
|
|
@@ -1343,15 +1360,14 @@ export interface TSConstructorType extends Span {
|
|
|
1343
1360
|
|
|
1344
1361
|
export interface TSMappedType extends Span {
|
|
1345
1362
|
type: 'TSMappedType';
|
|
1346
|
-
typeParameter: TSTypeParameter;
|
|
1347
1363
|
nameType: TSType | null;
|
|
1348
1364
|
typeAnnotation: TSType | null;
|
|
1349
|
-
optional:
|
|
1350
|
-
readonly:
|
|
1365
|
+
optional: true | '+' | '-' | null;
|
|
1366
|
+
readonly: true | '+' | '-' | null;
|
|
1367
|
+
key: TSTypeParameter['name'];
|
|
1368
|
+
constraint: TSTypeParameter['constraint'];
|
|
1351
1369
|
}
|
|
1352
1370
|
|
|
1353
|
-
export type TSMappedTypeModifierOperator = 'true' | '+' | '-' | 'none';
|
|
1354
|
-
|
|
1355
1371
|
export interface TSTemplateLiteralType extends Span {
|
|
1356
1372
|
type: 'TSTemplateLiteralType';
|
|
1357
1373
|
quasis: Array<TemplateElement>;
|
|
@@ -1413,25 +1429,25 @@ export interface TSNamespaceExportDeclaration extends Span {
|
|
|
1413
1429
|
export interface TSInstantiationExpression extends Span {
|
|
1414
1430
|
type: 'TSInstantiationExpression';
|
|
1415
1431
|
expression: Expression;
|
|
1416
|
-
|
|
1432
|
+
typeArguments: TSTypeParameterInstantiation;
|
|
1417
1433
|
}
|
|
1418
1434
|
|
|
1419
1435
|
export type ImportOrExportKind = 'value' | 'type';
|
|
1420
1436
|
|
|
1421
1437
|
export interface JSDocNullableType extends Span {
|
|
1422
|
-
type: '
|
|
1438
|
+
type: 'TSJSDocNullableType';
|
|
1423
1439
|
typeAnnotation: TSType;
|
|
1424
1440
|
postfix: boolean;
|
|
1425
1441
|
}
|
|
1426
1442
|
|
|
1427
1443
|
export interface JSDocNonNullableType extends Span {
|
|
1428
|
-
type: '
|
|
1444
|
+
type: 'TSJSDocNonNullableType';
|
|
1429
1445
|
typeAnnotation: TSType;
|
|
1430
1446
|
postfix: boolean;
|
|
1431
1447
|
}
|
|
1432
1448
|
|
|
1433
1449
|
export interface JSDocUnknownType extends Span {
|
|
1434
|
-
type: '
|
|
1450
|
+
type: 'TSJSDocUnknownType';
|
|
1435
1451
|
}
|
|
1436
1452
|
|
|
1437
1453
|
export type AssignmentOperator =
|
|
@@ -1761,6 +1777,7 @@ export type Node =
|
|
|
1761
1777
|
| JSXText
|
|
1762
1778
|
| TSThisParameter
|
|
1763
1779
|
| TSEnumDeclaration
|
|
1780
|
+
| TSEnumBody
|
|
1764
1781
|
| TSEnumMember
|
|
1765
1782
|
| TSTypeAnnotation
|
|
1766
1783
|
| TSLiteralType
|