Skip to content

Commit 5610950

Browse files
author
ben.durrant
committed
Predicate should receive action
1 parent 12c369b commit 5610950

File tree

1 file changed

+3
-3
lines changed
  • packages/toolkit/src/listenerMiddleware

1 file changed

+3
-3
lines changed

packages/toolkit/src/listenerMiddleware/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ export interface TypedActionCreator<Type extends string> {
2828

2929
/** @internal */
3030
export type AnyListenerPredicate<State> = (
31-
action: unknown,
31+
action: UnknownAction,
3232
currentState: State,
3333
originalState: State
3434
) => boolean
3535

3636
/** @public */
3737
export type ListenerPredicate<Action extends ReduxAction, State> = (
38-
action: unknown,
38+
action: UnknownAction,
3939
currentState: State,
4040
originalState: State
4141
) => action is Action
@@ -137,7 +137,7 @@ export interface ForkOptions {
137137
* If true, causes the parent task to not be marked as complete until
138138
* all autoJoined forks have completed or failed.
139139
*/
140-
autoJoin: boolean;
140+
autoJoin: boolean
141141
}
142142

143143
/** @public */

0 commit comments

Comments
 (0)