Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle both single and multiple antecedents in "antecedent" field #155

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

jfet97
Copy link
Contributor

@jfet97 jfet97 commented Jul 9, 2024

TS v5.5 changed some stuff regarding flow types. One thing is that the antecedent field could be an array now.

In fact, examples like this are quite broken now. If you select the last return x, for example, you see that TS version 5.5 has renamed the antecedents field containing an array into antecedent.

This probably comes from an effort to normalize shape of those flows nodes to make them monomorphic.

@jfet97
Copy link
Contributor Author

jfet97 commented Jul 9, 2024

@danvk I saw you added the flow nodes printing logic with #134, so I'm gonna draw your attention on this

@danvk
Copy link
Contributor

danvk commented Jul 9, 2024

This change looks good to me. Thanks for tracking it down and fixing it. These are the hazards of depending on internal APIs!

Copy link
Owner

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dsherret dsherret merged commit 0a2e2f7 into dsherret:main Jul 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants