Skip to content

Commit bb3253e

Browse files
authored
Merge pull request #17044 from filipesilva/patch-1
Allow visitors to return undefined
2 parents 4887673 + ae53355 commit bb3253e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4339,7 +4339,7 @@ namespace ts {
43394339
*/
43404340
export type Visitor = (node: Node) => VisitResult<Node>;
43414341

4342-
export type VisitResult<T extends Node> = T | T[];
4342+
export type VisitResult<T extends Node> = T | T[] | undefined;
43434343

43444344
export interface Printer {
43454345
/**

0 commit comments

Comments
 (0)