@@ -157,8 +157,8 @@ export function buildSelectors<
157
157
function buildQuerySelector (
158
158
endpointName : string ,
159
159
endpointDefinition : QueryDefinition < any , any , any , any >
160
- ) : QueryResultSelectorFactory < any , RootState > {
161
- return ( queryArgs ) => {
160
+ ) {
161
+ return ( ( queryArgs : any ) => {
162
162
const selectQuerySubState = createSelector (
163
163
selectInternalState ,
164
164
( internalState ) =>
@@ -173,14 +173,11 @@ export function buildSelectors<
173
173
] ) ?? defaultQuerySubState
174
174
)
175
175
return createSelector ( selectQuerySubState , withRequestFlags )
176
- }
176
+ } ) as QueryResultSelectorFactory < any , RootState >
177
177
}
178
178
179
- function buildMutationSelector ( ) : MutationResultSelectorFactory <
180
- any ,
181
- RootState
182
- > {
183
- return ( id ) => {
179
+ function buildMutationSelector ( ) {
180
+ return ( ( id ) => {
184
181
let mutationId : string | typeof skipToken
185
182
if ( typeof id === 'object' ) {
186
183
mutationId = getMutationCacheKey ( id ) ?? skipToken
@@ -195,7 +192,7 @@ export function buildSelectors<
195
192
: internalState ?. mutations ?. [ mutationId ] ) ?? defaultMutationSubState
196
193
)
197
194
return createSelector ( selectMutationSubstate , withRequestFlags )
198
- }
195
+ } ) as MutationResultSelectorFactory < any , RootState >
199
196
}
200
197
201
198
function selectInvalidatedBy (
0 commit comments