I think both of these lines have mismatched types:
|
queryConfig?: QueryConfig<typeof getComments>; |
|
queryConfig?: QueryConfig<typeof getComments>; |
Should both of these lines be defined as the following:
queryConfig?: InfiniteQueryConfig<typeof getInfiniteCommentsQueryOptions>
With InfiniteQueryConfig:
type InfiniteQueryConfig<T extends (...args: any[]) => any> = Omit<
ReturnType<T>,
"queryKey" | "queryFn" | "getNextPageParam" | "initialPageParam"
>;
Correct me if I'm wrong though
I think both of these lines have mismatched types:
bulletproof-react/apps/nextjs-app/src/features/comments/api/get-comments.ts
Line 40 in 49c4249
bulletproof-react/apps/nextjs-pages/src/features/comments/api/get-comments.ts
Line 46 in 49c4249
Should both of these lines be defined as the following:
With
InfiniteQueryConfig:Correct me if I'm wrong though