Skip to content

Commit

Permalink
fix(bindings/node): Add VisitTsPropertySignature (#9670)
Browse files Browse the repository at this point in the history
**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
  • Loading branch information
jzhan-canva authored Oct 24, 2024
1 parent ba2a942 commit 715c42c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/core/src/Visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,6 @@ export class Visitor {
return n;
}
visitTsPropertySignature(n: TsPropertySignature): TsPropertySignature {
n.params = this.visitTsFnParameters(n.params);
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
return n;
}
Expand Down
4 changes: 0 additions & 4 deletions packages/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2426,11 +2426,7 @@ export interface TsPropertySignature extends Node, HasSpan {
computed: boolean;
optional: boolean;

init?: Expression;
params: TsFnParameter[];

typeAnnotation?: TsTypeAnnotation;
typeParams?: TsTypeParameterDeclaration;
}

export interface TsGetterSignature extends Node, HasSpan {
Expand Down

0 comments on commit 715c42c

Please sign in to comment.