在Typescript Playground中,类型'ObjectConstructor'上不存在属性'values'

时间:2020-06-13 00:17:42

标签: typescript

1 个答案:

答案 0 :(得分:1)

标准库中ECMAScript功能的可用性由名为"lib"的编译器选项控制。到目前为止,您无法在TypeScript Playground中控制"lib"

在本地开发中,按照Jared的建议,将"lib"设置为"es2017"或更高版本。