타입스크립트를 사용한 프로젝트에서 Redux Thunk 사용시에 dispatch함수에서 발생하는 오류
해결방법
Action Creator 함수를 작성한 파일에서 해당 코드 추가해주기
import type {} from 'redux-thunk/extend-redux';
참고
https://github.com/reduxjs/redux-thunk/issues/333
ThunkAction is not assignable to parameter of type 'AnyAction'. · Issue #333 · reduxjs/redux-thunk
Bug Report Package name / version redux-thunk@2.4.1 Description I am trying to use a simple method from my store: store.dispatch(ThunkAction); It is working on run time, but I am receiving an error...
github.com