In javascript, how to explicit type of a dict when function is using as value?

前端 未结 0 1309
清酒与你
清酒与你 2020-12-16 01:54

I\'m trying to make a dict, the value of the dict is function. So it\'s like:

const someDictWithFuntionAsValue: {[SomeVariableType]: SomeFunction} = {...};


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