Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Type the mapDispatch function #396

Open
caasi opened this issue Dec 5, 2018 · 0 comments
Open

Type the mapDispatch function #396

caasi opened this issue Dec 5, 2018 · 0 comments
Labels
enhancement Improvements or refactorings on existing features

Comments

@caasi
Copy link
Contributor

caasi commented Dec 5, 2018

Describe the bug
The mapDispatch function is not well typed. When someone want to use the return value of a thunk action, they will get a thunk action in vscode instead of a promise.

Expected behavior
When someone dispatches a thunk action, their IDE should infer the result as a promised value.

Additional context
One should be familiar with advanced TypeScript types to resolve this issue.

@caasi caasi added the enhancement Improvements or refactorings on existing features label Dec 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvements or refactorings on existing features
Projects
None yet
Development

No branches or pull requests

1 participant