@oxc-project/types 0.49.0 → 0.50.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 +17 -14
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ export interface StaticMemberExpression extends Span {
|
|
|
147
147
|
export interface PrivateFieldExpression extends Span {
|
|
148
148
|
type: 'MemberExpression';
|
|
149
149
|
object: Expression;
|
|
150
|
-
|
|
150
|
+
property: PrivateIdentifier;
|
|
151
151
|
optional: boolean;
|
|
152
152
|
computed: false;
|
|
153
153
|
}
|
|
@@ -202,10 +202,10 @@ export interface BinaryExpression extends Span {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
export interface PrivateInExpression extends Span {
|
|
205
|
-
type: '
|
|
205
|
+
type: 'BinaryExpression';
|
|
206
206
|
left: PrivateIdentifier;
|
|
207
|
-
operator: BinaryOperator;
|
|
208
207
|
right: Expression;
|
|
208
|
+
operator: 'in';
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
export interface LogicalExpression extends Span {
|
|
@@ -268,9 +268,13 @@ export interface AssignmentTargetWithDefault extends Span {
|
|
|
268
268
|
export type AssignmentTargetProperty = AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty;
|
|
269
269
|
|
|
270
270
|
export interface AssignmentTargetPropertyIdentifier extends Span {
|
|
271
|
-
type: '
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
type: 'Property';
|
|
272
|
+
key: IdentifierReference;
|
|
273
|
+
value: IdentifierReference | AssignmentTargetWithDefault;
|
|
274
|
+
kind: 'init';
|
|
275
|
+
method: false;
|
|
276
|
+
shorthand: false;
|
|
277
|
+
computed: false;
|
|
274
278
|
}
|
|
275
279
|
|
|
276
280
|
export interface AssignmentTargetPropertyProperty extends Span {
|
|
@@ -579,7 +583,7 @@ export type FormalParameter =
|
|
|
579
583
|
override: boolean;
|
|
580
584
|
})
|
|
581
585
|
& Span
|
|
582
|
-
&
|
|
586
|
+
& BindingPattern;
|
|
583
587
|
|
|
584
588
|
export type FormalParameterKind = 'FormalParameter' | 'UniqueFormalParameters' | 'ArrowFormalParameters' | 'Signature';
|
|
585
589
|
|
|
@@ -698,8 +702,7 @@ export interface AccessorProperty extends Span {
|
|
|
698
702
|
export interface ImportExpression extends Span {
|
|
699
703
|
type: 'ImportExpression';
|
|
700
704
|
source: Expression;
|
|
701
|
-
|
|
702
|
-
phase: ImportPhase | null;
|
|
705
|
+
options: Expression | null;
|
|
703
706
|
}
|
|
704
707
|
|
|
705
708
|
export interface ImportDeclaration extends Span {
|
|
@@ -707,7 +710,7 @@ export interface ImportDeclaration extends Span {
|
|
|
707
710
|
specifiers: Array<ImportDeclarationSpecifier>;
|
|
708
711
|
source: StringLiteral;
|
|
709
712
|
phase: ImportPhase | null;
|
|
710
|
-
|
|
713
|
+
attributes: Array<ImportAttribute>;
|
|
711
714
|
importKind: ImportOrExportKind;
|
|
712
715
|
}
|
|
713
716
|
|
|
@@ -752,7 +755,7 @@ export interface ExportNamedDeclaration extends Span {
|
|
|
752
755
|
specifiers: Array<ExportSpecifier>;
|
|
753
756
|
source: StringLiteral | null;
|
|
754
757
|
exportKind: ImportOrExportKind;
|
|
755
|
-
|
|
758
|
+
attributes: Array<ImportAttribute>;
|
|
756
759
|
}
|
|
757
760
|
|
|
758
761
|
export interface ExportDefaultDeclaration extends Span {
|
|
@@ -765,7 +768,7 @@ export interface ExportAllDeclaration extends Span {
|
|
|
765
768
|
type: 'ExportAllDeclaration';
|
|
766
769
|
exported: ModuleExportName | null;
|
|
767
770
|
source: StringLiteral;
|
|
768
|
-
|
|
771
|
+
attributes: Array<ImportAttribute>;
|
|
769
772
|
exportKind: ImportOrExportKind;
|
|
770
773
|
}
|
|
771
774
|
|
|
@@ -815,7 +818,7 @@ export interface RegExpLiteral extends Span {
|
|
|
815
818
|
type: 'Literal';
|
|
816
819
|
regex: RegExp;
|
|
817
820
|
raw: string | null;
|
|
818
|
-
value:
|
|
821
|
+
value: null;
|
|
819
822
|
}
|
|
820
823
|
|
|
821
824
|
export interface RegExp {
|
|
@@ -1276,7 +1279,7 @@ export type TSModuleDeclarationBody = TSModuleDeclaration | TSModuleBlock;
|
|
|
1276
1279
|
|
|
1277
1280
|
export interface TSModuleBlock extends Span {
|
|
1278
1281
|
type: 'TSModuleBlock';
|
|
1279
|
-
body: Array<Statement>;
|
|
1282
|
+
body: Array<Directive | Statement>;
|
|
1280
1283
|
}
|
|
1281
1284
|
|
|
1282
1285
|
export interface TSTypeLiteral extends Span {
|