TypeScript: Standalone function type reusable for many functions

后端 未结 0 1738
猫巷女王i
猫巷女王i 2020-12-06 17:57

I want to create a re-usable type for functions, so that I can say:

type MyFunc = ...

const func1: MyFunc = ...
const func2: MyFunc = ...

Th

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