@oxc-project/types 0.65.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 +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/types",
3
- "version": "0.65.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
@@ -587,7 +587,7 @@ export interface Function extends Span {
587
587
  returnType?: TSTypeAnnotation | null;
588
588
  }
589
589
 
590
- export type ParamPattern = FormalParameter | FormalParameterRest;
590
+ export type ParamPattern = FormalParameter | TSParameterProperty | FormalParameterRest;
591
591
 
592
592
  export type FunctionType =
593
593
  | 'FunctionDeclaration'
@@ -608,6 +608,16 @@ export type FormalParameter =
608
608
  })
609
609
  & BindingPattern;
610
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
+
611
621
  export interface FunctionBody extends Span {
612
622
  type: 'BlockStatement';
613
623
  body: Array<Directive | Statement>;