We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b18f395 commit 5fe3b7bCopy full SHA for 5fe3b7b
index.d.ts
@@ -62,5 +62,8 @@ export type SingleQueryProps = BaseProps & {
62
export default function Media(props: SingleQueryProps): React.ReactElement;
63
export default function Media<Q>(props: MultiQueryProps<Q>): React.ReactElement;
64
65
-type UseMediaProps<Q> = SingleQueryProps | MultiQueryProps<Q>;
66
-export function useMedia<Q>(props: UseMediaProps<Q>): QueryResults<Q>;
+type UseMediaSingleQueryProps = Omit<SingleQueryProps, 'render' | 'children'>
+type UseMediaMultiQueryProps<Q> = Omit<MultiQueryProps<Q>, 'render' | 'children'>
67
+
68
+export function useMedia(props: SingleQueryProps): boolean;
69
+export function useMedia<Q>(props: UseMediaMultiQueryProps<Q>): QueryResults<Q>;
0 commit comments