Is it possible to assign a type to a function AND a function definition in typescript?

后端 未结 0 534
青春惊慌失措
青春惊慌失措 2021-01-02 15:54

I have this use case:

Angular has a TrackByFunction interface for public component functions.

I would like to do say "this function is a TrackByFunc

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