typescript generic array doesn't work typescript 3.9.7

后端 未结 0 1865
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 16:04

This works in typescript v4.1.3(playground) but doesn\'t work in v3.9.7(playground)

const uniqueMap = (items: [key: K, val: V][]) =>
    new Map(it         


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