@oxc-project/types 0.35.0 → 0.36.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 -62
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -2,29 +2,35 @@
|
|
|
2
2
|
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`
|
|
3
3
|
|
|
4
4
|
export interface BooleanLiteral extends Span {
|
|
5
|
-
type: '
|
|
5
|
+
type: 'Literal';
|
|
6
6
|
value: boolean;
|
|
7
|
+
raw: string;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface NullLiteral extends Span {
|
|
10
|
-
type: '
|
|
11
|
+
type: 'Literal';
|
|
12
|
+
value: null;
|
|
13
|
+
raw: 'null';
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
export interface NumericLiteral extends Span {
|
|
14
|
-
type: '
|
|
17
|
+
type: 'Literal';
|
|
15
18
|
value: number;
|
|
16
19
|
raw: string;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
export interface BigIntLiteral extends Span {
|
|
20
|
-
type: '
|
|
23
|
+
type: 'Literal';
|
|
21
24
|
raw: string;
|
|
25
|
+
value: null;
|
|
26
|
+
bigint: string;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
export interface RegExpLiteral extends Span {
|
|
25
|
-
type: '
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
type: 'Literal';
|
|
31
|
+
raw: string;
|
|
32
|
+
value: {} | null;
|
|
33
|
+
regex: { pattern: string; flags: string };
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
export interface RegExp {
|
|
@@ -34,9 +40,6 @@ export interface RegExp {
|
|
|
34
40
|
|
|
35
41
|
export type RegExpPattern = string | string | Pattern;
|
|
36
42
|
|
|
37
|
-
export interface EmptyObject {
|
|
38
|
-
}
|
|
39
|
-
|
|
40
43
|
export interface StringLiteral extends Span {
|
|
41
44
|
type: 'StringLiteral';
|
|
42
45
|
value: string;
|
|
@@ -135,7 +138,6 @@ export interface ObjectProperty extends Span {
|
|
|
135
138
|
kind: PropertyKind;
|
|
136
139
|
key: PropertyKey;
|
|
137
140
|
value: Expression;
|
|
138
|
-
init: Expression | null;
|
|
139
141
|
method: boolean;
|
|
140
142
|
shorthand: boolean;
|
|
141
143
|
computed: boolean;
|
|
@@ -383,12 +385,12 @@ export type AssignmentTargetPattern = ArrayAssignmentTarget | ObjectAssignmentTa
|
|
|
383
385
|
|
|
384
386
|
export interface ArrayAssignmentTarget extends Span {
|
|
385
387
|
type: 'ArrayAssignmentTarget';
|
|
386
|
-
elements: Array<
|
|
388
|
+
elements: Array<AssignmentTargetRest | AssignmentTargetMaybeDefault | null>;
|
|
387
389
|
}
|
|
388
390
|
|
|
389
391
|
export interface ObjectAssignmentTarget extends Span {
|
|
390
392
|
type: 'ObjectAssignmentTarget';
|
|
391
|
-
properties: Array<
|
|
393
|
+
properties: Array<AssignmentTargetRest | AssignmentTargetProperty>;
|
|
392
394
|
}
|
|
393
395
|
|
|
394
396
|
export interface AssignmentTargetRest extends Span {
|
|
@@ -725,7 +727,7 @@ export interface AssignmentPattern extends Span {
|
|
|
725
727
|
|
|
726
728
|
export interface ObjectPattern extends Span {
|
|
727
729
|
type: 'ObjectPattern';
|
|
728
|
-
properties: Array<
|
|
730
|
+
properties: Array<BindingRestElement | BindingProperty>;
|
|
729
731
|
}
|
|
730
732
|
|
|
731
733
|
export interface BindingProperty extends Span {
|
|
@@ -738,7 +740,7 @@ export interface BindingProperty extends Span {
|
|
|
738
740
|
|
|
739
741
|
export interface ArrayPattern extends Span {
|
|
740
742
|
type: 'ArrayPattern';
|
|
741
|
-
elements: Array<
|
|
743
|
+
elements: Array<BindingRestElement | BindingPattern | null>;
|
|
742
744
|
}
|
|
743
745
|
|
|
744
746
|
export interface BindingRestElement extends Span {
|
|
@@ -1038,53 +1040,7 @@ export interface TSEnumMember extends Span {
|
|
|
1038
1040
|
initializer: Expression | null;
|
|
1039
1041
|
}
|
|
1040
1042
|
|
|
1041
|
-
export type TSEnumMemberName =
|
|
1042
|
-
| IdentifierName
|
|
1043
|
-
| StringLiteral
|
|
1044
|
-
| TemplateLiteral
|
|
1045
|
-
| NumericLiteral
|
|
1046
|
-
| BooleanLiteral
|
|
1047
|
-
| NullLiteral
|
|
1048
|
-
| NumericLiteral
|
|
1049
|
-
| BigIntLiteral
|
|
1050
|
-
| RegExpLiteral
|
|
1051
|
-
| StringLiteral
|
|
1052
|
-
| TemplateLiteral
|
|
1053
|
-
| IdentifierReference
|
|
1054
|
-
| MetaProperty
|
|
1055
|
-
| Super
|
|
1056
|
-
| ArrayExpression
|
|
1057
|
-
| ArrowFunctionExpression
|
|
1058
|
-
| AssignmentExpression
|
|
1059
|
-
| AwaitExpression
|
|
1060
|
-
| BinaryExpression
|
|
1061
|
-
| CallExpression
|
|
1062
|
-
| ChainExpression
|
|
1063
|
-
| Class
|
|
1064
|
-
| ConditionalExpression
|
|
1065
|
-
| Function
|
|
1066
|
-
| ImportExpression
|
|
1067
|
-
| LogicalExpression
|
|
1068
|
-
| NewExpression
|
|
1069
|
-
| ObjectExpression
|
|
1070
|
-
| ParenthesizedExpression
|
|
1071
|
-
| SequenceExpression
|
|
1072
|
-
| TaggedTemplateExpression
|
|
1073
|
-
| ThisExpression
|
|
1074
|
-
| UnaryExpression
|
|
1075
|
-
| UpdateExpression
|
|
1076
|
-
| YieldExpression
|
|
1077
|
-
| PrivateInExpression
|
|
1078
|
-
| JSXElement
|
|
1079
|
-
| JSXFragment
|
|
1080
|
-
| TSAsExpression
|
|
1081
|
-
| TSSatisfiesExpression
|
|
1082
|
-
| TSTypeAssertion
|
|
1083
|
-
| TSNonNullExpression
|
|
1084
|
-
| TSInstantiationExpression
|
|
1085
|
-
| ComputedMemberExpression
|
|
1086
|
-
| StaticMemberExpression
|
|
1087
|
-
| PrivateFieldExpression;
|
|
1043
|
+
export type TSEnumMemberName = IdentifierName | StringLiteral;
|
|
1088
1044
|
|
|
1089
1045
|
export interface TSTypeAnnotation extends Span {
|
|
1090
1046
|
type: 'TSTypeAnnotation';
|