Skip to content

Commit c9b12d9

Browse files
committed
Use AnyNonNullishValue in ApiModules.middleware
1 parent 8bdf841 commit c9b12d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Note: this file should import all other files for type discovery and declaration merging
33
*/
4+
import type { AnyNonNullishValue, AnyObject } from '@internal/tsHelpers'
45
import type {
56
ActionCreatorWithPayload,
67
Middleware,
@@ -139,7 +140,7 @@ export interface ApiModules<
139140
* ```
140141
*/
141142
middleware: Middleware<
142-
{},
143+
AnyNonNullishValue,
143144
RootState<Definitions, string, ReducerPath>,
144145
ThunkDispatch<any, any, UnknownAction>
145146
>

0 commit comments

Comments
 (0)