@@ -10,12 +10,9 @@ import type {
10
10
EndpointDefinitions ,
11
11
MutationDefinition ,
12
12
QueryDefinition ,
13
- ReducerPathFrom ,
14
- TagTypesFrom ,
15
13
} from '../endpointDefinitions'
16
14
import { isMutationDefinition , isQueryDefinition } from '../endpointDefinitions'
17
15
import { assertCast , safeAssign } from '../tsHelpers'
18
- import type { RootState } from './apiState'
19
16
import type {
20
17
BuildInitiateApiEndpointMutation ,
21
18
BuildInitiateApiEndpointQuery ,
@@ -28,8 +25,8 @@ import type {
28
25
} from './buildMiddleware'
29
26
import { buildMiddleware } from './buildMiddleware'
30
27
import type {
28
+ BuildSelectorsApiEndpointMutation ,
31
29
BuildSelectorsApiEndpointQuery ,
32
- MutationResultSelectorFactory ,
33
30
} from './buildSelectors'
34
31
import { buildSelectors } from './buildSelectors'
35
32
import type { SliceActions } from './buildSlice'
@@ -87,16 +84,8 @@ export interface ApiEndpointMutation<
87
84
// eslint-disable-next-line @typescript-eslint/no-unused-vars
88
85
Definitions extends EndpointDefinitions ,
89
86
> extends BuildThunksApiEndpointMutation < Definition > ,
90
- BuildInitiateApiEndpointMutation < Definition > {
91
- select : MutationResultSelectorFactory <
92
- Definition ,
93
- RootState <
94
- Definitions ,
95
- TagTypesFrom < Definition > ,
96
- ReducerPathFrom < Definition >
97
- >
98
- >
99
-
87
+ BuildInitiateApiEndpointMutation < Definition > ,
88
+ BuildSelectorsApiEndpointMutation < Definition , Definitions > {
100
89
name : string
101
90
/**
102
91
* All of these are `undefined` at runtime, purely to be used in TypeScript declarations!
0 commit comments