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