Skip to content

Commit 25dd34a

Browse files
authored
🤖 Merge PR DefinitelyTyped#73145 fix(esrecurse): remove non-existing dynamic methods by @hkleungai
1 parent a13fcad commit 25dd34a

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

‎types/esrecurse/esrecurse-tests.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ const mockAst = {
2929

3030
// $ExpectType Visitor
3131
visitor = new Visitor();
32-
visitor["Literal"] = (node: any) => {
33-
node.value;
34-
};
3532
// $ExpectType void
3633
visitor.visit(mockAst);
3734
}

‎types/esrecurse/index.d.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ declare class Visitor {
3636
* @param node The AST node whose children to visit.
3737
*/
3838
visitChildren(node: any): void;
39-
40-
/**
41-
* Dynamically defined methods for specific node types (e.g., Literal, Program).
42-
* @param node The AST node to process.
43-
*/
44-
[nodeType: string]: ((node: any) => void) | undefined;
4539
}
4640

4741
/**

0 commit comments

Comments
 (0)