@oxc-project/types 0.62.0 → 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.
- package/package.json +1 -1
- package/types.d.ts +18 -3
package/package.json
CHANGED
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
|
-
|
|
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;
|
|
@@ -1308,7 +1324,6 @@ export interface TSImportType extends Span {
|
|
|
1308
1324
|
options: ObjectExpression | null;
|
|
1309
1325
|
qualifier: TSTypeName | null;
|
|
1310
1326
|
typeArguments: TSTypeParameterInstantiation | null;
|
|
1311
|
-
isTypeOf: boolean;
|
|
1312
1327
|
}
|
|
1313
1328
|
|
|
1314
1329
|
export interface TSFunctionType extends Span {
|
|
@@ -1472,7 +1487,7 @@ export interface Span {
|
|
|
1472
1487
|
end: number;
|
|
1473
1488
|
}
|
|
1474
1489
|
|
|
1475
|
-
export type ModuleKind = 'script' | 'module'
|
|
1490
|
+
export type ModuleKind = 'script' | 'module';
|
|
1476
1491
|
|
|
1477
1492
|
export interface Pattern extends Span {
|
|
1478
1493
|
type: 'Pattern';
|