File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/toolkit/src/query/core Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,21 @@ declare module '../apiTypes' {
148
148
getRunningOperationPromise < EndpointName extends QueryKeys < Definitions > > (
149
149
endpointName : EndpointName ,
150
150
args : QueryArgFrom < Definitions [ EndpointName ] >
151
- ) : QueryActionCreatorResult < Definitions [ EndpointName ] > | undefined
151
+ ) :
152
+ | QueryActionCreatorResult <
153
+ Definitions [ EndpointName ] & { type : 'query' }
154
+ >
155
+ | undefined
152
156
getRunningOperationPromise <
153
157
EndpointName extends MutationKeys < Definitions >
154
158
> (
155
159
endpointName : EndpointName ,
156
160
fixedCacheKeyOrRequestId : string
157
- ) : MutationActionCreatorResult < Definitions [ EndpointName ] > | undefined
161
+ ) :
162
+ | MutationActionCreatorResult <
163
+ Definitions [ EndpointName ] & { type : 'mutation' }
164
+ >
165
+ | undefined
158
166
159
167
/**
160
168
* A Redux thunk that can be used to manually trigger pre-fetching of data.
You can’t perform that action at this time.
0 commit comments