Skip to content

Type lookup in getIntrinsicAttributestypeFromJsxOpeningLikeElement should match getIntrinsicTagSymbol #42819

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

Merged

Conversation

weswigham
Copy link
Member

(getDeclaredTypeOfSymbol does not do what we want on type aliases.)

Additionally, removes the assertion and conservatively adds an || errorType to satisfy the typechecker instead (while so long as the lookups methods match between getIntrinsicAttributestypeFromJsxOpeningLikeElement and getIntrinsicTagSymbol, it should never be undefined, if they ever drift again, returning the errorType here is better for follow-on issues than quietly leaking undefined).

Fixes #42753

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Feb 16, 2021
@weswigham weswigham merged commit 3b35522 into microsoft:master Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
3 participants