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

JS: Enable type extraction inside conditional types again #10202

Merged
merged 2 commits into from
Aug 29, 2022

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Aug 29, 2022

This re-enables type extraction inside conditional types, i.e. types of form X extends Y ? A : B, which are relevant for extracting MaD typings from .d.ts files.

This was originally disabled in #1295 to avoid divergence issues when extracting the type property graph. However, in #3781 we stopped extracting the type property graph entirely, so the previous mitigation should no longer be needed.

I verified that this code, which originally caused problems, still works after this change. Evaluation also looks fine.

@asgerf asgerf added JS no-change-note-required This PR does not need a change note labels Aug 29, 2022
@asgerf asgerf requested a review from a team as a code owner August 29, 2022 08:09
erik-krogh
erik-krogh previously approved these changes Aug 29, 2022
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

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

👍

@asgerf asgerf merged commit d6ee54e into github:main Aug 29, 2022
erik-krogh added a commit to erik-krogh/ql that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants