From 7b181d64756e30e39cc2171ca8a5f494724a159c Mon Sep 17 00:00:00 2001 From: Tomi Saarinen Date: Fri, 1 Dec 2023 13:00:40 +0200 Subject: [PATCH] Fix useQueries options type --- src/ReactQuery_Query.res | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ReactQuery_Query.res b/src/ReactQuery_Query.res index cdc5849..c5b5235 100644 --- a/src/ReactQuery_Query.res +++ b/src/ReactQuery_Query.res @@ -58,7 +58,11 @@ external useQuery: queryOptions<'queryKey, 'queryData, 'queryError, 'pageParam> 'queryData, > = "useQuery" +type queriesOptions<'queryKey, 'queryData, 'queryError, 'pageParam> = { + queries: array>, +} + @module("@tanstack/react-query") -external useQueries: array> => array< +external useQueries: queriesOptions<'queryKey, 'queryData, 'queryError, 'pageParam> => array< queryResult<'queryError, 'queryData>, > = "useQueries"