-
Notifications
You must be signed in to change notification settings - Fork 421
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
MediaQueryListListener should provide a MediaQueryListEvent #550
Comments
Also the |
@saschanaz Where did you find that they should be deprecated? |
@SteppeEagle The deprecation in the web specification means it would generate a warning message at runtime when used, and the web people now don't want to use such mechanism. They instead marks a type as "historical, only for backward compatibility" and that's what we currently refer to add Per the spec the APIs are historical:
|
This is related, angular/components#15264, Safari doesn't implement addEventListener/RemoveEventListener which leaves us no option but to use the |
@teleaziz Can't one just add a polyfill in case addEventListener doesn't exist? |
Or maybe one can just add |
In
typescript@3.0
this was:As of microsoft/TypeScript#25944 this is now:
According to mdn this is better than before, but it could be more specific -- the event will always be a
MediaQueryListEvent
, but currently will just be anEvent
.This affects
match-media-mock
on DefinitelyTyped.The text was updated successfully, but these errors were encountered: