src/hoc/StoreFactory

时间2023-05-26 13:35:49 提问来自 香港 的网友 分类ChatGPT提问 浏览161 热度0
18,10): error TS2564: Property 'getState' in type 'Store' is not assignable to the same property in base type 'Readonly<{}>'. Type '(...args: any[]) => any' is not assignable to type '() => Readonly<{}>'. Types of parameters 'args' and '0' are incompatible. Type '0' is not assignable to type 'any[]'. src/hoc/StoreFactory.tsx(19,10): error TS2564: Property 'dispatch' in type 'Store' is not assignable to the same property in base type 'Readonly<{}>'. Type '(action: Action) => void | Promise<void> | undefined | null | false' is not assignable to type '(action: AnyAction) => AnyAction'. Types of parameters 'action' and 'action' are incompatible. Type '[ActionTypes] extends string ? { [K in ActionTypes]: (...args: any[]) => void }[ActionTypes] : never extends AnyAction ? ... Remove this comment to see the full error message

AI智能问答网免责声明:
以上内容除特别注明外均来源于网友提问、ChatGPT回答,权益归原著者所有,本站仅作效果演示和欣赏之用;
若以上展示有冒犯或侵害到您,敬请联系我们进行删除处理,谢谢!

上一篇 中国的房价为什么这么高,详细解释下原因 下一篇 搜索框的用法