What about Typescript? How I can get typed action in component?
nnslvp opened this issue · 3 comments
nnslvp commented
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 commented
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 commented
Any updates on this? Currently struggling with the same issue.