@oxc-project/types 0.52.0 → 0.54.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 +7 -10
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export type Expression =
|
|
|
48
48
|
| TSTypeAssertion
|
|
49
49
|
| TSNonNullExpression
|
|
50
50
|
| TSInstantiationExpression
|
|
51
|
+
| V8IntrinsicExpression
|
|
51
52
|
| MemberExpression;
|
|
52
53
|
|
|
53
54
|
export interface IdentifierName extends Span {
|
|
@@ -555,12 +556,6 @@ export type FunctionType =
|
|
|
555
556
|
| 'TSDeclareFunction'
|
|
556
557
|
| 'TSEmptyBodyFunctionExpression';
|
|
557
558
|
|
|
558
|
-
export interface FormalParameters extends Span {
|
|
559
|
-
type: 'FormalParameters';
|
|
560
|
-
kind: FormalParameterKind;
|
|
561
|
-
items: Array<FormalParameter | FormalParameterRest>;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
559
|
export interface FormalParameterRest extends Span {
|
|
565
560
|
type: 'RestElement';
|
|
566
561
|
argument: BindingPatternKind;
|
|
@@ -577,8 +572,6 @@ export type FormalParameter =
|
|
|
577
572
|
})
|
|
578
573
|
& BindingPattern;
|
|
579
574
|
|
|
580
|
-
export type FormalParameterKind = 'FormalParameter' | 'UniqueFormalParameters' | 'ArrowFormalParameters' | 'Signature';
|
|
581
|
-
|
|
582
575
|
export interface FunctionBody extends Span {
|
|
583
576
|
type: 'BlockStatement';
|
|
584
577
|
body: Array<Directive | Statement>;
|
|
@@ -701,7 +694,6 @@ export interface ImportDeclaration extends Span {
|
|
|
701
694
|
type: 'ImportDeclaration';
|
|
702
695
|
specifiers: Array<ImportDeclarationSpecifier>;
|
|
703
696
|
source: StringLiteral;
|
|
704
|
-
phase: ImportPhase | null;
|
|
705
697
|
attributes: Array<ImportAttribute>;
|
|
706
698
|
importKind: ImportOrExportKind;
|
|
707
699
|
}
|
|
@@ -747,7 +739,6 @@ export interface ExportNamedDeclaration extends Span {
|
|
|
747
739
|
export interface ExportDefaultDeclaration extends Span {
|
|
748
740
|
type: 'ExportDefaultDeclaration';
|
|
749
741
|
declaration: ExportDefaultDeclarationKind;
|
|
750
|
-
exported: ModuleExportName;
|
|
751
742
|
}
|
|
752
743
|
|
|
753
744
|
export interface ExportAllDeclaration extends Span {
|
|
@@ -769,6 +760,12 @@ export type ExportDefaultDeclarationKind = Function | Class | TSInterfaceDeclara
|
|
|
769
760
|
|
|
770
761
|
export type ModuleExportName = IdentifierName | IdentifierReference | StringLiteral;
|
|
771
762
|
|
|
763
|
+
export interface V8IntrinsicExpression extends Span {
|
|
764
|
+
type: 'V8IntrinsicExpression';
|
|
765
|
+
name: IdentifierName;
|
|
766
|
+
arguments: Array<Argument>;
|
|
767
|
+
}
|
|
768
|
+
|
|
772
769
|
export interface BooleanLiteral extends Span {
|
|
773
770
|
type: 'Literal';
|
|
774
771
|
value: boolean;
|