错误 TS2322:输入 '{ auth: (state: auth.State | undefined, action: All) => auth.State; }' 不能分配给类型 'ActionReducer<unknown, Action>';

问题描述

将 reducer 注册到 app.module.ts 时出错。 错误 -> 错误:src/app/app.module.ts:25:26 - 错误 TS2322:类型 '{ auth: (state: auth.State | undefined,action: All) => auth.State; }' 不能分配给类型 'ActionReducer'。 输入 '{ auth: (state: State | undefined,action: All) => State; }' 不匹配签名 '(state: 未知,动作:动作):未知'。

项目的 GIT 链接https://github.com/Shubhangi238/LoginApp.git

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)