Skip to content

Commit 565f502

Browse files
committed
refactor(openapi-react-query): streamline UseInfiniteQueryMethod
1 parent 21a300c commit 565f502

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,16 @@ export type UseInfiniteQueryMethod<Paths extends Record<string, Record<HttpMetho
116116
InfiniteData<Response["data"]>,
117117
Response["data"],
118118
QueryKey<Paths, Method, Path>,
119-
Query[PageParamName]
119+
NonNullable<Query[PageParamName]>
120120
>,
121-
"queryKey" | "queryFn" | "initialPageParam"
121+
"queryKey" | "queryFn"
122122
>,
123123
>(
124124
method: Method,
125125
url: Path,
126126
init: InitWithUnknowns<Init>,
127127
options: Options & {
128128
pageParamName: PageParamName;
129-
initialPageParam: NonNullable<Query[PageParamName]>;
130129
},
131130
queryClient?: QueryClient,
132131
) => UseInfiniteQueryResult<InfiniteData<Response["data"]>, Response["error"]>;

0 commit comments

Comments
 (0)