Skip to content

Commit

Permalink
Fix useQueries options type
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiS authored and vmarcosp committed Jan 27, 2024
1 parent 5f07eb3 commit 7b181d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ReactQuery_Query.res
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ external useQuery: queryOptions<'queryKey, 'queryData, 'queryError, 'pageParam>
'queryData,
> = "useQuery"

type queriesOptions<'queryKey, 'queryData, 'queryError, 'pageParam> = {
queries: array<queryOptions<'queryKey, 'queryData, 'queryError, 'pageParam>>,
}

@module("@tanstack/react-query")
external useQueries: array<queryOptions<'queryKey, 'queryData, 'queryError, 'pageParam>> => array<
external useQueries: queriesOptions<'queryKey, 'queryData, 'queryError, 'pageParam> => array<
queryResult<'queryError, 'queryData>,
> = "useQueries"

0 comments on commit 7b181d6

Please sign in to comment.