InfiniteQueryOptions should omit initialPageParam
and getNextPageParam
#156
Labels
bug
Something isn't working
initialPageParam
and getNextPageParam
#156
Describe the bug
The code generator generates infinite query options like this:
While this works for normal queries, it does not work for infinite queries because it enforces a type for options with
initialPageParam
andgetNextPageParam
as required attributes.To Reproduce
Run
pnpm generate:api
inexamples/react-app
and look at/openapi/queries/infiniteQueryes.ts
OpenAPI spec file
See examples
Expected behavior
It should generate it like this:
The text was updated successfully, but these errors were encountered: