Skip to content

Commit a795d7b

Browse files
committed
Altered EndPointDefinition for type inference
1 parent 633f85b commit a795d7b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/toolkit/src/query/endpointDefinitions.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import type { SerializeQueryArgs } from './defaultSerializeQueryArgs'
22
import type {
3-
GetNextPageParamFunction,
4-
GetPreviousPageParamFunction,
53
InfiniteQueryConfigOptions,
64
QuerySubState,
75
RootState
@@ -559,7 +557,7 @@ export interface InfiniteQueryExtraOptions<
559557
*/
560558
invalidatesTags?: never
561559

562-
infiniteQueryOptions: InfiniteQueryConfigOptions
560+
infiniteQueryOptions: InfiniteQueryConfigOptions<ResultType, QueryArg>
563561

564562
/**
565563
* All of these are `undefined` at runtime, purely to be used in TypeScript declarations!

0 commit comments

Comments
 (0)