Skip to content

Commit 4d94ae9

Browse files
janeklbEskiMojo14timdorr
authored
fix(types): getState is not bound to MiddlewareAPI (#4737)
Co-authored-by: Ben Durrant <[email protected]> Co-authored-by: Tim Dorr <[email protected]>
1 parent a3d153f commit 4d94ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/middleware.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Dispatch } from './store'
22

33
export interface MiddlewareAPI<D extends Dispatch = Dispatch, S = any> {
44
dispatch: D
5-
getState(): S
5+
getState: () => S
66
}
77

88
/**

0 commit comments

Comments
 (0)