Skip to content

Commit

Permalink
Merge pull request #1977 from reduxjs/fix-reducerPath
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Jan 31, 2022
2 parents 673e306 + 60af3a9 commit 18e4f78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/toolkit/src/query/endpointDefinitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ export type EndpointBuilder<
*/
query<ResultType, QueryArg>(
definition: OmitFromUnion<
QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType>,
QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>,
'type'
>
): QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType>
): QueryDefinition<QueryArg, BaseQuery, TagTypes, ResultType, ReducerPath>
/**
* An endpoint definition that alters data on the server or will possibly invalidate the cache.
*
Expand Down
1 change: 1 addition & 0 deletions packages/toolkit/src/query/tests/buildSelector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('buildSelector', () => {
const store = configureStore({
reducer: {
[exampleApi.reducerPath]: exampleApi.reducer,
other: () => 1,
},
})

Expand Down

0 comments on commit 18e4f78

Please sign in to comment.