We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d153f commit 4d94ae9Copy full SHA for 4d94ae9
src/types/middleware.ts
@@ -2,7 +2,7 @@ import type { Dispatch } from './store'
2
3
export interface MiddlewareAPI<D extends Dispatch = Dispatch, S = any> {
4
dispatch: D
5
- getState(): S
+ getState: () => S
6
}
7
8
/**
0 commit comments