@oxc-project/types 0.53.0 → 0.55.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +10 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
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 {
@@ -94,8 +95,8 @@ export interface ObjectProperty extends Span {
94
95
  shorthand: boolean;
95
96
  computed: boolean;
96
97
  key: PropertyKey;
97
- kind: PropertyKind;
98
98
  value: Expression;
99
+ kind: PropertyKind;
99
100
  }
100
101
 
101
102
  export type PropertyKey = IdentifierName | PrivateIdentifier | Expression;
@@ -273,8 +274,8 @@ export interface AssignmentTargetPropertyIdentifier extends Span {
273
274
  shorthand: true;
274
275
  computed: false;
275
276
  key: IdentifierReference;
276
- kind: 'init';
277
277
  value: IdentifierReference | AssignmentTargetWithDefault;
278
+ kind: 'init';
278
279
  }
279
280
 
280
281
  export interface AssignmentTargetPropertyProperty extends Span {
@@ -519,8 +520,8 @@ export interface BindingProperty extends Span {
519
520
  shorthand: boolean;
520
521
  computed: boolean;
521
522
  key: PropertyKey;
522
- kind: 'init';
523
523
  value: BindingPattern;
524
+ kind: 'init';
524
525
  }
525
526
 
526
527
  export interface ArrayPattern extends Span {
@@ -759,6 +760,12 @@ export type ExportDefaultDeclarationKind = Function | Class | TSInterfaceDeclara
759
760
 
760
761
  export type ModuleExportName = IdentifierName | IdentifierReference | StringLiteral;
761
762
 
763
+ export interface V8IntrinsicExpression extends Span {
764
+ type: 'V8IntrinsicExpression';
765
+ name: IdentifierName;
766
+ arguments: Array<Argument>;
767
+ }
768
+
762
769
  export interface BooleanLiteral extends Span {
763
770
  type: 'Literal';
764
771
  value: boolean;