📌  相关文章
📜  “InitialState”类型的参数不可分配给“never”类型的参数 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:48.793000             🧑  作者: Mango

代码示例2
function reducer(state: IState, action: IFluxAction): IState {
   // reducer code
   // type errors are visible here 
}
// make sure to put the IState type as the return type of the function and
// the error will show inside the switch statement