A Typed array of functions

前端 未结 4 2085
生来不讨喜
生来不讨喜 2021-02-02 05:28

I\'m struggling to figure out if it\'s possible in TypeScript to declare a statically typed array of functions.

For example, I can do this:

foo: (data:st         


        
4条回答
提交回复
热议问题