@oxc-project/types 0.38.0 → 0.40.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 +10 -6
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -4,37 +4,37 @@
|
|
|
4
4
|
export interface BooleanLiteral extends Span {
|
|
5
5
|
type: 'Literal';
|
|
6
6
|
value: boolean;
|
|
7
|
-
raw: string;
|
|
7
|
+
raw: string | null;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface NullLiteral extends Span {
|
|
11
11
|
type: 'Literal';
|
|
12
12
|
value: null;
|
|
13
|
-
raw: 'null';
|
|
13
|
+
raw: 'null' | null;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface NumericLiteral extends Span {
|
|
17
17
|
type: 'Literal';
|
|
18
18
|
value: number;
|
|
19
|
-
raw: string;
|
|
19
|
+
raw: string | null;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface StringLiteral extends Span {
|
|
23
23
|
type: 'Literal';
|
|
24
24
|
value: string;
|
|
25
|
-
raw
|
|
25
|
+
raw: string | null;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export interface BigIntLiteral extends Span {
|
|
29
29
|
type: 'Literal';
|
|
30
|
-
raw: string;
|
|
30
|
+
raw: string | null;
|
|
31
31
|
value: null;
|
|
32
32
|
bigint: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface RegExpLiteral extends Span {
|
|
36
36
|
type: 'Literal';
|
|
37
|
-
raw: string;
|
|
37
|
+
raw: string | null;
|
|
38
38
|
value: {} | null;
|
|
39
39
|
regex: { pattern: string; flags: string };
|
|
40
40
|
}
|
|
@@ -905,16 +905,20 @@ export interface ImportExpression extends Span {
|
|
|
905
905
|
type: 'ImportExpression';
|
|
906
906
|
source: Expression;
|
|
907
907
|
arguments: Array<Expression>;
|
|
908
|
+
phase: ImportPhase | null;
|
|
908
909
|
}
|
|
909
910
|
|
|
910
911
|
export interface ImportDeclaration extends Span {
|
|
911
912
|
type: 'ImportDeclaration';
|
|
912
913
|
specifiers: Array<ImportDeclarationSpecifier> | null;
|
|
913
914
|
source: StringLiteral;
|
|
915
|
+
phase: ImportPhase | null;
|
|
914
916
|
withClause: WithClause | null;
|
|
915
917
|
importKind: ImportOrExportKind;
|
|
916
918
|
}
|
|
917
919
|
|
|
920
|
+
export type ImportPhase = 'source' | 'defer';
|
|
921
|
+
|
|
918
922
|
export type ImportDeclarationSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier;
|
|
919
923
|
|
|
920
924
|
export interface ImportSpecifier extends Span {
|