Skip to content

Commit

Permalink
fix(types): getState is not bound to MiddlewareAPI (#4737)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Durrant <[email protected]>
Co-authored-by: Tim Dorr <[email protected]>
  • Loading branch information
3 people authored Sep 11, 2024
1 parent a3d153f commit 4d94ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Dispatch } from './store'

export interface MiddlewareAPI<D extends Dispatch = Dispatch, S = any> {
dispatch: D
getState(): S
getState: () => S
}

/**
Expand Down

0 comments on commit 4d94ae9

Please sign in to comment.