Typescript throws error for return function type

前端 未结 0 1349
春和景丽
春和景丽 2021-02-05 03:17

I am trying to type this mock function and it\'s throwing in the following error:

Value of type \'() => { doc: { name: string; header: string; bod

相关标签:
回答
  • 消灭零回复
提交回复
热议问题