Skip to content

Commit ccf638e

Browse files
committed
Make sure ApiModules stays an interface
1 parent 5f27873 commit ccf638e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/toolkit/src/query/core/module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export type CoreModule =
8484

8585
export type ThunkWithReturnValue<T> = ThunkAction<T, any, any, UnknownAction>
8686

87+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
8788
export interface ApiModules<
8889
BaseQuery extends BaseQueryFn,
8990
Definitions extends EndpointDefinitions,

packages/toolkit/src/query/react/module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const reactHooksModuleName = /* @__PURE__ */ Symbol()
2929
export type ReactHooksModule = typeof reactHooksModuleName
3030

3131
declare module '@reduxjs/toolkit/query' {
32+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
3233
export interface ApiModules<
3334
BaseQuery extends BaseQueryFn,
3435
Definitions extends EndpointDefinitions,

0 commit comments

Comments
 (0)