Skip to content

Commit f2ac87e

Browse files
riqtsmarkerikson
authored andcommitted
Altered EndPointDefinition for type inference
1 parent 175c3af commit f2ac87e

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 { Api } from '@reduxjs/toolkit/query'
22
import type {
3-
GetNextPageParamFunction,
4-
GetPreviousPageParamFunction,
53
InfiniteQueryConfigOptions,
64
QuerySubState,
75
RootState,
@@ -580,7 +578,7 @@ export interface InfiniteQueryExtraOptions<
580578
*/
581579
invalidatesTags?: never
582580

583-
infiniteQueryOptions: InfiniteQueryConfigOptions
581+
infiniteQueryOptions: InfiniteQueryConfigOptions<ResultType, QueryArg>
584582

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

0 commit comments

Comments
 (0)