With @tanstack/react-query v5.80.0, there was a change to the number of type parameters of UseInfiniteQueryOptions, however, Orval is still generating according to the previous number of parameters for useInfinite queries.
See also: https://github.com/TanStack/query/releases/tag/v5.80.0