-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels