@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.
- package/package.json +1 -1
- package/types.d.ts +11 -1
package/package.json
CHANGED
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>;
|