Skip to content

Commit

Permalink
add type labels
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-narzt committed Mar 23, 2023
1 parent b0bfbb9 commit bc3376e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mock-doc/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}

Expand Down

0 comments on commit bc3376e

Please sign in to comment.