From bc3376e05cdc56f089b81f3055be9e3dd7bf71f5 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Thu, 10 Mar 2022 18:43:00 -0700 Subject: [PATCH] add type labels --- src/mock-doc/window.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mock-doc/window.ts b/src/mock-doc/window.ts index 5985dc858a14..117b90252f55 100644 --- a/src/mock-doc/window.ts +++ b/src/mock-doc/window.ts @@ -337,14 +337,14 @@ export class MockWindow { } } - matchMedia(media) { + matchMedia(media: string) { return { media, matches: false, addEventListener, dispatchEvent, removeEventListener, - onchange: null, + onchange: null as (this: MediaQueryList, ev: MediaQueryListEvent) => any, }; }