【问题标题】:Property 'values' does not exist on type 'ObjectConstructor' in Typescript PlaygroundTypescript Playground 中的“ObjectConstructor”类型上不存在属性“值”
【发布时间】:2020-10-02 20:27:51
【问题描述】:

【问题讨论】:

标签: typescript


【解决方案1】:

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

在本地开发中,将 "lib" 设置为 "es2017" 或更高版本,就像 Jared 建议的那样。

【讨论】:

    猜你喜欢
    • 2019-02-17
    • 2016-06-27
    • 2018-01-07
    • 2018-10-13
    • 1970-01-01
    • 1970-01-01
    • 2016-12-16
    • 2023-04-02
    • 2018-08-17
    相关资源
    最近更新 更多