Skip to content

Commit 21a300c

Browse files
committed
fix(openapi-react-query): make initialPageParam non-nullable
1 parent 3c26c95 commit 21a300c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export type UseInfiniteQueryMethod<Paths extends Record<string, Record<HttpMetho
126126
init: InitWithUnknowns<Init>,
127127
options: Options & {
128128
pageParamName: PageParamName;
129-
initialPageParam: Query[PageParamName];
129+
initialPageParam: NonNullable<Query[PageParamName]>;
130130
},
131131
queryClient?: QueryClient,
132132
) => UseInfiniteQueryResult<InfiniteData<Response["data"]>, Response["error"]>;

0 commit comments

Comments
 (0)