File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ export class BreakpointObserver implements OnDestroy {
105
105
const mql = this . _mediaMatcher . matchMedia ( query ) ;
106
106
107
107
// Create callback for match changes and add it is as a listener.
108
- const queryObservable = new Observable ( ( observer : Observer < MediaQueryList > ) => {
108
+ const queryObservable = new Observable ( ( observer : Observer < MediaQueryListEvent > ) => {
109
109
// Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed
110
110
// back into the zone because matchMedia is only included in Zone.js by loading the
111
111
// webapis-media-query.js file alongside the zone.js file. Additionally, some browsers do not
112
112
// have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js
113
113
// patches it.
114
- const handler = ( e : any ) => this . _zone . run ( ( ) => observer . next ( e ) ) ;
114
+ const handler = ( e : MediaQueryListEvent ) : void => this . _zone . run ( ( ) => observer . next ( e ) ) ;
115
115
mql . addListener ( handler ) ;
116
116
117
117
return ( ) => {
You can’t perform that action at this time.
0 commit comments