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

Fix Event Typing Error Due to Too Many Overloads #5908

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

anthony-murphy
Copy link
Contributor

@anthony-murphy anthony-murphy commented Apr 22, 2021

I'd optimistically increased the number of event overloads, but not consumed it. As part of bumping all packages it turns out we've hit an intrinsic typescript limit for recursive types, which was leading to “TS2589: Type instantiation is excessively deep and possibly infinite” . This change reduces the number of overloads to the number which works, and is still more than we currently use anywhere.

There are few typescript issues this could be related to:
microsoft/TypeScript#34933
microsoft/TypeScript#41406

@github-actions github-actions bot requested review from vladsud and curtisman April 22, 2021 21:21
@anthony-murphy anthony-murphy merged commit 78ee26e into microsoft:main Apr 22, 2021
@anthony-murphy anthony-murphy deleted the fix-event-typing branch April 22, 2021 21:37
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.

2 participants