📅  最后修改于: 2022-03-11 15:00:48.793000             🧑  作者: Mango
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