Skip to content

Commit

Permalink
fix: export MediaQueryMatchers type (closes #307)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra committed Nov 29, 2022
1 parent c968860 commit 87ad844
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Change Log

### v9.0.1

- Export MediaQueryMatchers type

### v9.0.0

- Convert project to typescript
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-responsive",
"description": "Media queries in react for responsive design",
"version": "9.0.0",
"version": "9.0.1",
"homepage": "http://github.com/contra/react-responsive",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface MediaQueryTypes {
tv?: boolean;
embossed?: boolean;
}
export declare type MediaQueryType = keyof MediaQueryTypes;
export type MediaQueryType = keyof MediaQueryTypes;
export interface MediaQueryMatchers {
aspectRatio?: string;
deviceAspectRatio?: string;
Expand Down
2 changes: 1 addition & 1 deletion types/useMediaQuery.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MediaQueryAllQueryable, MediaQueryMatchers } from './types';
declare type MediaQuerySettings = Partial<MediaQueryAllQueryable & {
type MediaQuerySettings = Partial<MediaQueryAllQueryable & {
query?: string;
}>;
declare const useMediaQuery: (settings: MediaQuerySettings, device?: MediaQueryMatchers, onChange?: ((_: boolean) => void) | undefined) => boolean;
Expand Down

0 comments on commit 87ad844

Please sign in to comment.