Skip to content

Commit 1886182

Browse files
abenhamdineedorivai
authored andcommitted
Add typings for useMedia
1 parent 7380364 commit 1886182

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ export type SingleQueryProps = BaseProps & {
6161
*/
6262
export default function Media(props: SingleQueryProps): React.ReactElement;
6363
export default function Media<Q>(props: MultiQueryProps<Q>): React.ReactElement;
64+
65+
type UseMediaProps = SingleQueryProps & MultiQueryProps<Queries>
66+
67+
type UseMediaProps<Q> = SingleQueryProps | MultiQueryProps<Q>;
68+
export function useMedia<Q>(props: UseMediaProps<Q>): QueryResults<Q>;

0 commit comments

Comments
 (0)