Skip to content

Commit 3c26c95

Browse files
committed
Revert "refactor(openapi-react-query): simplify types"
This reverts commit bd874bd.
1 parent bd874bd commit 3c26c95

File tree

1 file changed

+2
-1
lines changed
  • packages/openapi-react-query/src

1 file changed

+2
-1
lines changed

packages/openapi-react-query/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,15 @@ export type UseInfiniteQueryMethod<Paths extends Record<string, Record<HttpMetho
118118
QueryKey<Paths, Method, Path>,
119119
Query[PageParamName]
120120
>,
121-
"queryKey" | "queryFn"
121+
"queryKey" | "queryFn" | "initialPageParam"
122122
>,
123123
>(
124124
method: Method,
125125
url: Path,
126126
init: InitWithUnknowns<Init>,
127127
options: Options & {
128128
pageParamName: PageParamName;
129+
initialPageParam: Query[PageParamName];
129130
},
130131
queryClient?: QueryClient,
131132
) => UseInfiniteQueryResult<InfiniteData<Response["data"]>, Response["error"]>;

0 commit comments

Comments
 (0)