How to type functions in useRef hook with TypeScript

前端 未结 0 1619
忘了有多久
忘了有多久 2021-01-11 17:22

I have a component:

interface MyRef {
  foo: () => Promise;
  bar: () => Promise;
}

const Component: React.FunctionComponen         


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