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

前端 未结 0 1442
轮回少年
轮回少年 2020-12-16 02:22

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

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


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