我正在使用带有Typescript的React,并尝试基于react-dnd库创建一个更高阶的组件。该错误发生在react-dnd组件的DragSource部分。Property 'type' is missing in type 'typeof WithTemplateObjectDraggable'. [2345]
我不确定我是不是错误地使用了高阶
在使用TypeScript创建高阶组件时,我会得到以下错误。你能帮我解决这个问题吗?Type '{}' is not assignable to type 'ComponentToWrapProps'构成部分:
export const withFormHelpers = <ComponentToWrapProps