How to use an interface for function type declaration in type script

前端 未结 0 1590
轻奢々
轻奢々 2020-12-09 16:46

I am trying create a function type (delegate), by using following code.

interface DelegateTypeExample {
    m: (s: string) => number;
}

const         


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