File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/toolkit/src/dynamicMiddleware/tests Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,9 @@ import { isAllOf } from '../../matchers'
8
8
9
9
const probeType = 'probeableMW/probe'
10
10
11
- type ProbeType = typeof probeType
12
-
13
- export interface ProbeMiddleware extends BaseActionCreator < number , ProbeType > {
14
- < Id extends number > ( id : Id ) : PayloadAction < Id , ProbeType >
11
+ export interface ProbeMiddleware
12
+ extends BaseActionCreator < number , typeof probeType > {
13
+ < Id extends number > ( id : Id ) : PayloadAction < Id , typeof probeType >
15
14
}
16
15
17
16
export const probeMiddleware = createAction ( probeType ) as ProbeMiddleware
@@ -24,7 +23,7 @@ const matchId =
24
23
export const makeProbeableMiddleware = < Id extends number > (
25
24
id : Id
26
25
) : Middleware < {
27
- ( action : PayloadAction < Id , ProbeType > ) : Id
26
+ ( action : PayloadAction < Id , typeof probeType > ) : Id
28
27
} > => {
29
28
const isMiddlewareAction = isAllOf ( isAction , probeMiddleware , matchId ( id ) )
30
29
return ( api ) => ( next ) => ( action ) => {
You can’t perform that action at this time.
0 commit comments