diff --git a/types/react-responsive/index.d.ts b/types/react-responsive/index.d.ts index f44bd65c9e..f18d3039ba 100644 --- a/types/react-responsive/index.d.ts +++ b/types/react-responsive/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-responsive 3.0 +// Type definitions for react-responsive 8.0 // Project: http://github.com/contra/react-responsive // Definitions by: Alexey Svetliakov // Alec Hill @@ -87,4 +87,13 @@ export interface MediaQueryProps extends MediaQueryAllQueryable { declare class MediaQuery extends React.Component { } export function toQuery(matchers: Partial): string; + +export const Context: React.Context>; + +export function useMediaQuery( + settings: Partial, + device?: MediaQueryTypes, + callback?: (matches: boolean) => void +): boolean; + export default MediaQuery;