ts forwardRef()报错

项目有eslint
const SearchForm: FC<SearchFormProps> =(props:any,ref:any) => {}
export default Form.create()(forwardRef(SearchForm))

forwardRef(SearchForm)报错
Types of property 'defaultProps' are incompatible.
Type 'Partial<SearchFormProps> | undefined' is not assignable to type 'undefined'
Type 'Partial<SearchFormProps>' is not assignable to type 'undefined'

之前一直这么用的,不太清楚要怎么改,求大神指点

阅读 1.6k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题