Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What about Typescript? How I can get typed action in component? #115

Open
nnslvp opened this issue Jun 28, 2020 · 3 comments
Open

What about Typescript? How I can get typed action in component? #115

nnslvp opened this issue Jun 28, 2020 · 3 comments

Comments

@nnslvp
Copy link

nnslvp commented Jun 28, 2020

How can I get typed action in component?
When I try call .then() for action I get TS error Property 'then' does not exist on type but code worked.

@flo5324
Copy link

flo5324 commented Nov 26, 2020

Hi
Personally, I use AnyAction from redux as a workaround

I hope a real type will be created for the actions but it's quite tricky as it must be an object and a promise at the same time
Not sure if it's even possible

@ThijmenDam
Copy link

Any updates on this? Currently struggling with the same issue.

@paisenzzz
Copy link

Same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants