Skip to content

Commit 3b79b52

Browse files
author
ben.durrant
committed
type action as unknown
1 parent 36d2aef commit 3b79b52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export interface MiddlewareAPI<D extends Dispatch = Dispatch, S = any> {
2020
* installed.
2121
*/
2222
export interface Middleware<
23-
_DispatchExt = {}, // TODO: remove unused component (breaking change)
23+
_DispatchExt = {}, // TODO: see if this can be used in type definition somehow (can't be removed, as is used to get final dispatch type)
2424
S = any,
2525
D extends Dispatch = Dispatch
2626
> {
2727
(api: MiddlewareAPI<D, S>): (
2828
next: D
29-
) => (action: D extends Dispatch<infer A> ? A : never) => any
29+
) => (action: unknown) => any
3030
}

0 commit comments

Comments
 (0)