-
Notifications
You must be signed in to change notification settings - Fork 312
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
Fixes the types related to event types. #916
base: master
Are you sure you want to change the base?
Conversation
Size Change: 0 B Total Size: 11.4 MB ℹ️ View Unchanged
|
@Shaptic great that helps. However, the EventSource static variable type declaration is not backward compatible. If you install this in Typescript less than 5, it throws the same error. Typescript changed from using |
Ah, so this is a breaking change, then... 🤦 did TypeScript break this across a minor version boundary, then?? |
But then doing something like |
Yes, this would affect downstream users and projects who have not yet upgraded to Typescript or just can't. I had to downgrade one of our projects back to Typescript 4 as I didn't have enough bandwidth to fix all the issues as it affected other libraries still using old Typescript. Adding union to support |
Thanks to @CITGuru for reporting this! It closes #914 and #915.