Skip to content

Commit

Permalink
Create code gen module imports absolute paths
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
FabianFrank authored Nov 16, 2023
1 parent 44cd3b1 commit 635eeba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rtk-query/usage/customizing-create-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ If you want to create your own module, you should review [the react-hooks module
Here is a very stripped down version:

```ts no-transpile
import { CoreModule } from '@internal/core/module'
import {
BaseQueryFn,
CoreModule,
EndpointDefinitions,
Api,
Module,
Expand All @@ -57,7 +57,7 @@ import {
export const customModuleName = Symbol()
export type CustomModule = typeof customModuleName

declare module '../apiTypes' {
declare module '@reduxjs/toolkit/query' {
export interface ApiModules<
BaseQuery extends BaseQueryFn,
Definitions extends EndpointDefinitions,
Expand Down

0 comments on commit 635eeba

Please sign in to comment.