Skip to content

Commit 0bb2530

Browse files
authored
Merge pull request #145 from lidoravitan/fix/dispatch-definition
fix: dispatch return argument action type and not void
2 parents dfa465f + ca0b1d1 commit 0bb2530

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)