redux-axios-middleware icon indicating copy to clipboard operation
redux-axios-middleware copied to clipboard

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

Open nnslvp opened this issue 4 years ago • 3 comments

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.

nnslvp avatar Jun 28 '20 17:06 nnslvp

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

flo5324 avatar Nov 26 '20 17:11 flo5324

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

ThijmenDam avatar Sep 07 '22 10:09 ThijmenDam