Skip to content

Commit ca0b1d1

Browse files
committed
fix: dispatch return argument action type and not void
1 parent 4b0951a commit ca0b1d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

definitions/logic.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export namespace CreateLogic {
290290
Context extends Object = undefined
291291
> = ((
292292
depObj: Process.DepObj<State, Action, Dependency, Context>,
293-
dispatch: (action: ArgumentAction) => void,
293+
dispatch: <T extends ArgumentAction>(action: T) => T,
294294
done: () => void
295295
) => void);
296296
}

0 commit comments

Comments
 (0)