@oxc-project/types 0.64.0 → 0.66.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 +17 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.64.0",
3
+ "version": "0.66.0",
4
4
  "description": "Types for Oxc AST nodes",
5
5
  "keywords": [
6
6
  "AST",
package/types.d.ts CHANGED
@@ -286,6 +286,9 @@ export interface AssignmentTargetWithDefault extends Span {
286
286
  type: 'AssignmentPattern';
287
287
  left: AssignmentTarget;
288
288
  right: Expression;
289
+ decorators?: [];
290
+ optional?: false;
291
+ typeAnnotation?: null;
289
292
  }
290
293
 
291
294
  export type AssignmentTargetProperty = AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty;
@@ -533,6 +536,8 @@ export interface AssignmentPattern extends Span {
533
536
  left: BindingPattern;
534
537
  right: Expression;
535
538
  decorators?: [];
539
+ optional?: false;
540
+ typeAnnotation?: null;
536
541
  }
537
542
 
538
543
  export interface ObjectPattern extends Span {
@@ -582,7 +587,7 @@ export interface Function extends Span {
582
587
  returnType?: TSTypeAnnotation | null;
583
588
  }
584
589
 
585
- export type ParamPattern = FormalParameter | FormalParameterRest;
590
+ export type ParamPattern = FormalParameter | TSParameterProperty | FormalParameterRest;
586
591
 
587
592
  export type FunctionType =
588
593
  | 'FunctionDeclaration'
@@ -603,6 +608,16 @@ export type FormalParameter =
603
608
  })
604
609
  & BindingPattern;
605
610
 
611
+ export interface TSParameterProperty extends Span {
612
+ type: 'TSParameterProperty';
613
+ accessibility: TSAccessibility | null;
614
+ decorators: Array<Decorator>;
615
+ override: boolean;
616
+ parameter: FormalParameter;
617
+ readonly: boolean;
618
+ static: boolean;
619
+ }
620
+
606
621
  export interface FunctionBody extends Span {
607
622
  type: 'BlockStatement';
608
623
  body: Array<Directive | Statement>;
@@ -1206,8 +1221,8 @@ export interface TSClassImplements extends Span {
1206
1221
  export interface TSInterfaceDeclaration extends Span {
1207
1222
  type: 'TSInterfaceDeclaration';
1208
1223
  id: BindingIdentifier;
1209
- extends: Array<TSInterfaceHeritage>;
1210
1224
  typeParameters: TSTypeParameterDeclaration | null;
1225
+ extends: Array<TSInterfaceHeritage>;
1211
1226
  body: TSInterfaceBody;
1212
1227
  declare: boolean;
1213
1228
  }