我正处于一个大型redux状态的重构过程中,我的问题是尚未转换为typescript的reducers返回unknown,而我更希望它返回any。>>export function combineReducers<S>(): Reducer<S>
export function combineReducers<S, A extends Action = AnyActio
我正在重构我的NgRx还原器,以使用createReducer()函数而不是传统的开关语句,但是我得到了以下错误:
ERROR in src/app/store/price.reducer.ts(17,32src/app/store/price.reducer.ts(18,34): error TS2339: Property 'action' does not exist on type 'IPrice}) => ({ ...