Skip to content

Commit 635eeba

Browse files
authored
Create code gen module imports absolute paths
Use absolute paths for imports and module declarations to reflect how this would be used in an actual project that depends on redux toolkit, as opposed to how it is used inside the rtk monorepo.
1 parent 44cd3b1 commit 635eeba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rtk-query/usage/customizing-create-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ If you want to create your own module, you should review [the react-hooks module
4444
Here is a very stripped down version:
4545

4646
```ts no-transpile
47-
import { CoreModule } from '@internal/core/module'
4847
import {
4948
BaseQueryFn,
49+
CoreModule,
5050
EndpointDefinitions,
5151
Api,
5252
Module,
@@ -57,7 +57,7 @@ import {
5757
export const customModuleName = Symbol()
5858
export type CustomModule = typeof customModuleName
5959

60-
declare module '../apiTypes' {
60+
declare module '@reduxjs/toolkit/query' {
6161
export interface ApiModules<
6262
BaseQuery extends BaseQueryFn,
6363
Definitions extends EndpointDefinitions,

0 commit comments

Comments
 (0)