Skip to content

Commit d0a7c16

Browse files
committed
Cleanup imports from first pass
1 parent 478b2d1 commit d0a7c16

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/toolkit/src/query/core/buildMiddleware/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ import type {
1919
SubscriptionState,
2020
} from '../apiState'
2121
import type {
22+
InfiniteQueryThunk,
2223
MutationThunk,
2324
QueryThunk,
2425
QueryThunkArg,
25-
ThunkResult,
26+
ThunkResult
2627
} from '../buildThunks'
2728

2829
export type QueryStateMeta<T> = Record<string, undefined | T>
@@ -47,6 +48,7 @@ export interface BuildMiddlewareInput<
4748
context: ApiContext<Definitions>
4849
queryThunk: QueryThunk
4950
mutationThunk: MutationThunk
51+
infiniteQueryThunk: InfiniteQueryThunk
5052
api: Api<any, Definitions, ReducerPath, TagTypes>
5153
assertTagType: AssertTagTypes
5254
}
@@ -106,7 +108,7 @@ export type ApiMiddlewareInternalHandler<Return = void> = (
106108
) => Return
107109

108110
export type InternalHandlerBuilder<ReturnType = void> = (
109-
input: BuildSubMiddlewareInput | BuildInfMiddlewareInput,
111+
input: BuildSubMiddlewareInput,
110112
) => ApiMiddlewareInternalHandler<ReturnType>
111113

112114
export interface PromiseConstructorWithKnownReason {

packages/toolkit/src/query/core/module.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ import type {
1515
ThunkDispatch,
1616
UnknownAction,
1717
} from '@reduxjs/toolkit'
18-
import {
18+
import type {
1919
EndpointDefinitions,
2020
QueryArgFrom,
2121
QueryDefinition,
2222
MutationDefinition,
2323
AssertTagTypes,
24-
TagDescription, isInfiniteQueryDefinition, InfiniteQueryDefinition
24+
TagDescription,
25+
InfiniteQueryDefinition
2526
} from '../endpointDefinitions'
26-
import { isQueryDefinition, isMutationDefinition } from '../endpointDefinitions'
27+
import { isQueryDefinition, isMutationDefinition, isInfiniteQueryDefinition } from '../endpointDefinitions'
2728
import type {
2829
CombinedState,
2930
QueryKeys,

0 commit comments

Comments
 (0)