Open jguipi opened 6 years ago
Workaround is to install redux-thunk@2.1
which will install version 2.1.2 of redux-thunk:
npm install --save redux-thunk@2.1
with version 2.1.2 im still getting :Generic type 'Dispatch<A, S>' requires 2 type argument(s).
This is probably unrelated to that change though. Do you have a full trace ? @jguipi
For some reason i modify the code to add an extra argument again and it worked. I dont know why it worked this time but i'm good now. To make it work I edited : C:\Users\userxxxxx\dev\project-namet\node_modules\redux-i18n\index.d.ts
I made the line 53 look like this: export function setTranslations(translations: ITranslations, languageOrOptions?: IlanguageOrOptions | string): ThunkAction<any, any, any, any>
I'm using typescript and when I added your library to my projet I got this error and it wont compile. Even if I modify the code to add an argument It wont compile. Here's the error :
C:/Users/xxxxx/dev/react_project/node_modules/redux-i18n/index.d.ts (53,116): Generic type 'ThunkAction' requires 4 type argument(s).
Here's my dependencies :