Typescript named function inside functional component

前端 未结 0 1632
死守一世寂寞
死守一世寂寞 2020-12-31 18:25

I need to type foo with MyType[\'foo\'].


type MyType {
  foo: () => void
}

const Comp: R         


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