Skip to content

Commit

Permalink
fix: recursive visitor must call intersection callback
Browse files Browse the repository at this point in the history
  • Loading branch information
nlepage committed Apr 6, 2022
1 parent 5873f52 commit 388d48a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/models/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export function makeRecursiveVisitor(
visitor.inferred?.(type);
},
intersection(type) {
visitor.intersection?.(type);
type.types.forEach((t) => t.visit(recursiveVisitor));
},
intrinsic(type) {
Expand Down

0 comments on commit 388d48a

Please sign in to comment.