Skip to content

Commit 715c42c

Browse files
authoredOct 24, 2024··
fix(bindings/node): Add VisitTsPropertySignature (#9670)
**Description:** As per PR #8955 > TsPropertySignature can not have params, type params, or an initializer. This PR cleans up these fields from ts definition and visitor
1 parent ba2a942 commit 715c42c

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed
 

‎packages/core/src/Visitor.ts

-1
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,6 @@ export class Visitor {
797797
return n;
798798
}
799799
visitTsPropertySignature(n: TsPropertySignature): TsPropertySignature {
800-
n.params = this.visitTsFnParameters(n.params);
801800
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
802801
return n;
803802
}

‎packages/types/index.ts

-4
Original file line numberDiff line numberDiff line change
@@ -2426,11 +2426,7 @@ export interface TsPropertySignature extends Node, HasSpan {
24262426
computed: boolean;
24272427
optional: boolean;
24282428

2429-
init?: Expression;
2430-
params: TsFnParameter[];
2431-
24322429
typeAnnotation?: TsTypeAnnotation;
2433-
typeParams?: TsTypeParameterDeclaration;
24342430
}
24352431

24362432
export interface TsGetterSignature extends Node, HasSpan {

0 commit comments

Comments
 (0)
Please sign in to comment.