我正在使用类似脚本创建一个类,该类具有ES6(ECMAscript 2016)Map的属性,如下所示:
class Item { configs: ????; constructor () { this.configs = new Map(); } }
如何在打字稿中声明ES6 Map类型?
javascript typescript typescript1.5
javascript ×1
typescript ×1
typescript1.5 ×1