src/hoc/StoreFactory
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回答,权益归原著者所有,本站仅作效果演示和欣赏之用;
若以上展示有冒犯或侵害到您,敬请联系我们进行删除处理,谢谢!