-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The code generator generates infinite query options like this:
Omit<UseInfiniteQueryOptions<TData, TError>, "queryKey" | "queryFn">
While this works for normal queries, it does not work for infinite queries because it enforces a type for options with initialPageParam and getNextPageParam as required attributes.
To Reproduce
Run pnpm generate:api in examples/react-app and look at /openapi/queries/infiniteQueryes.ts
OpenAPI spec file
See examples
Expected behavior
It should generate it like this:
Omit<UseInfiniteQueryOptions<TData, TError>, "queryKey" | "queryFn" | "initialPageParam" | "getNextPageParam">
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working