Skip to content

Commit

Permalink
[useMediaQuery] Fix typings for options object (#14339)
Browse files Browse the repository at this point in the history
* [useMediaQuery] Fixed typings for options object

* Update unstable_useMediaQuery.d.ts
  • Loading branch information
johannwagner authored and oliviertassinari committed Jan 30, 2019
1 parent 9379bf8 commit 138aef1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export type MuiMediaQueryListListener = (event: MuiMediaQueryListEvent) => void;

export interface Options {
defaultMatches?: boolean;
matchMedia?: (query: string) => MuiMediaQueryList;
noSsr?: boolean;
ssrMatchMedia?: (query: string) => MuiMediaQueryList;
}

export default function unstable_useMediaQuery(query: string, options?: Options): boolean;

0 comments on commit 138aef1

Please sign in to comment.