@@ -901,11 +901,11 @@ export interface StaticBlockBuilder {
901
901
902
902
export interface ClassBodyBuilder {
903
903
(
904
- body : ( K . MethodDefinitionKind | K . VariableDeclaratorKind | K . ClassPropertyDefinitionKind | K . ClassPropertyKind | K . ClassPrivatePropertyKind | K . ClassMethodKind | K . ClassPrivateMethodKind | K . StaticBlockKind | K . TSDeclareMethodKind | K . TSCallSignatureDeclarationKind | K . TSConstructSignatureDeclarationKind | K . TSIndexSignatureKind | K . TSMethodSignatureKind | K . TSPropertySignatureKind ) [ ]
904
+ body : ( K . MethodDefinitionKind | K . VariableDeclaratorKind | K . ClassPropertyDefinitionKind | K . ClassPropertyKind | K . ClassPrivatePropertyKind | K . ClassAccessorPropertyKind | K . ClassMethodKind | K . ClassPrivateMethodKind | K . StaticBlockKind | K . TSDeclareMethodKind | K . TSCallSignatureDeclarationKind | K . TSConstructSignatureDeclarationKind | K . TSIndexSignatureKind | K . TSMethodSignatureKind | K . TSPropertySignatureKind ) [ ]
905
905
) : namedTypes . ClassBody ;
906
906
from (
907
907
params : {
908
- body : ( K . MethodDefinitionKind | K . VariableDeclaratorKind | K . ClassPropertyDefinitionKind | K . ClassPropertyKind | K . ClassPrivatePropertyKind | K . ClassMethodKind | K . ClassPrivateMethodKind | K . StaticBlockKind | K . TSDeclareMethodKind | K . TSCallSignatureDeclarationKind | K . TSConstructSignatureDeclarationKind | K . TSIndexSignatureKind | K . TSMethodSignatureKind | K . TSPropertySignatureKind ) [ ] ;
908
+ body : ( K . MethodDefinitionKind | K . VariableDeclaratorKind | K . ClassPropertyDefinitionKind | K . ClassPropertyKind | K . ClassPrivatePropertyKind | K . ClassAccessorPropertyKind | K . ClassMethodKind | K . ClassPrivateMethodKind | K . StaticBlockKind | K . TSDeclareMethodKind | K . TSCallSignatureDeclarationKind | K . TSConstructSignatureDeclarationKind | K . TSIndexSignatureKind | K . TSMethodSignatureKind | K . TSPropertySignatureKind ) [ ] ;
909
909
comments ?: K . CommentKind [ ] | null ;
910
910
loc ?: K . SourceLocationKind | null ;
911
911
}
@@ -2757,11 +2757,11 @@ export interface ClassMethodBuilder {
2757
2757
params : K . PatternKind [ ] ,
2758
2758
body : K . BlockStatementKind ,
2759
2759
computed ?: boolean ,
2760
- staticParam ?: boolean | null
2760
+ staticParam ?: boolean
2761
2761
) : namedTypes . ClassMethod ;
2762
2762
from (
2763
2763
params : {
2764
- abstract ?: boolean | null ;
2764
+ abstract ?: boolean ;
2765
2765
access ?: "public" | "private" | "protected" | null ;
2766
2766
accessibility ?: "public" | "private" | "protected" | null ;
2767
2767
async ?: boolean ;
@@ -2776,12 +2776,13 @@ export interface ClassMethodBuilder {
2776
2776
key : K . LiteralKind | K . IdentifierKind | K . ExpressionKind ;
2777
2777
kind ?: "get" | "set" | "method" | "constructor" ;
2778
2778
loc ?: K . SourceLocationKind | null ;
2779
- optional ?: boolean | null ;
2779
+ optional ?: boolean ;
2780
2780
params : K . PatternKind [ ] ;
2781
2781
predicate ?: K . FlowPredicateKind | null ;
2782
+ readonly ?: boolean ;
2782
2783
rest ?: K . IdentifierKind | null ;
2783
2784
returnType ?: K . TypeAnnotationKind | K . TSTypeAnnotationKind | null ;
2784
- static ?: boolean | null ;
2785
+ static ?: boolean ;
2785
2786
typeParameters ?: K . TypeParameterDeclarationKind | K . TSTypeParameterDeclarationKind | null ;
2786
2787
}
2787
2788
) : namedTypes . ClassMethod ;
@@ -2794,11 +2795,11 @@ export interface ClassPrivateMethodBuilder {
2794
2795
body : K . BlockStatementKind ,
2795
2796
kind ?: "get" | "set" | "method" | "constructor" ,
2796
2797
computed ?: boolean ,
2797
- staticParam ?: boolean | null
2798
+ staticParam ?: boolean
2798
2799
) : namedTypes . ClassPrivateMethod ;
2799
2800
from (
2800
2801
params : {
2801
- abstract ?: boolean | null ;
2802
+ abstract ?: boolean ;
2802
2803
access ?: "public" | "private" | "protected" | null ;
2803
2804
accessibility ?: "public" | "private" | "protected" | null ;
2804
2805
async ?: boolean ;
@@ -2813,17 +2814,44 @@ export interface ClassPrivateMethodBuilder {
2813
2814
key : K . PrivateNameKind ;
2814
2815
kind ?: "get" | "set" | "method" | "constructor" ;
2815
2816
loc ?: K . SourceLocationKind | null ;
2816
- optional ?: boolean | null ;
2817
+ optional ?: boolean ;
2817
2818
params : K . PatternKind [ ] ;
2818
2819
predicate ?: K . FlowPredicateKind | null ;
2820
+ readonly ?: boolean ;
2819
2821
rest ?: K . IdentifierKind | null ;
2820
2822
returnType ?: K . TypeAnnotationKind | K . TSTypeAnnotationKind | null ;
2821
- static ?: boolean | null ;
2823
+ static ?: boolean ;
2822
2824
typeParameters ?: K . TypeParameterDeclarationKind | K . TSTypeParameterDeclarationKind | null ;
2823
2825
}
2824
2826
) : namedTypes . ClassPrivateMethod ;
2825
2827
}
2826
2828
2829
+ export interface ClassAccessorPropertyBuilder {
2830
+ (
2831
+ key : K . LiteralKind | K . IdentifierKind | K . PrivateNameKind | K . ExpressionKind ,
2832
+ value : K . ExpressionKind ,
2833
+ decorators ?: K . DecoratorKind [ ] | null ,
2834
+ computed ?: boolean ,
2835
+ staticParam ?: boolean
2836
+ ) : namedTypes . ClassAccessorProperty ;
2837
+ from (
2838
+ params : {
2839
+ abstract ?: boolean ;
2840
+ accessibility ?: "public" | "private" | "protected" | null ;
2841
+ comments ?: K . CommentKind [ ] | null ;
2842
+ computed ?: boolean ;
2843
+ decorators ?: K . DecoratorKind [ ] | null ;
2844
+ key : K . LiteralKind | K . IdentifierKind | K . PrivateNameKind | K . ExpressionKind ;
2845
+ loc ?: K . SourceLocationKind | null ;
2846
+ optional ?: boolean ;
2847
+ readonly ?: boolean ;
2848
+ static ?: boolean ;
2849
+ typeAnnotation ?: K . TSTypeAnnotationKind | null ;
2850
+ value : K . ExpressionKind ;
2851
+ }
2852
+ ) : namedTypes . ClassAccessorProperty ;
2853
+ }
2854
+
2827
2855
export interface RestPropertyBuilder {
2828
2856
( argument : K . ExpressionKind ) : namedTypes . RestProperty ;
2829
2857
from (
@@ -3915,6 +3943,7 @@ export interface builders {
3915
3943
regExpLiteral : RegExpLiteralBuilder ;
3916
3944
classMethod : ClassMethodBuilder ;
3917
3945
classPrivateMethod : ClassPrivateMethodBuilder ;
3946
+ classAccessorProperty : ClassAccessorPropertyBuilder ;
3918
3947
restProperty : RestPropertyBuilder ;
3919
3948
forAwaitStatement : ForAwaitStatementBuilder ;
3920
3949
import : ImportBuilder ;
0 commit comments