mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
chore(types): add null checks (#16351)
This commit is contained in:
@ -112,8 +112,8 @@ export class SplitPane implements ComponentInterface {
|
||||
this.visible = q.matches;
|
||||
};
|
||||
const mediaList = this.win.matchMedia(mediaQuery);
|
||||
mediaList.addListener(callback);
|
||||
this.rmL = () => mediaList.removeListener(callback);
|
||||
mediaList.addListener(callback as any);
|
||||
this.rmL = () => mediaList.removeListener(callback as any);
|
||||
this.visible = mediaList.matches;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user