我一直在研究文件中找到的lib
属性的可能值是什么意思.我在Typescript GitHub页面上找到了与这些值相对应的相关文件,并且显然使用了以下ES功能:compilerOptions
tsconfig.json
d.ts
ES2017
/// <reference path="lib.es2016.d.ts" />
/// <reference path="lib.es2017.object.d.ts" />
/// <reference path="lib.es2017.sharedmemory.d.ts" />
/// <reference path="lib.es2017.string.d.ts" />
/// <reference path="lib.es2015.d.ts" />
/// <reference path="lib.es2016.array.include.d.ts" />
/// <reference path="lib.es2015.core.d.ts" />
/// <reference path="lib.es2015.collection.d.ts" />
/// <reference path="lib.es2015.generator.d.ts" />
/// <reference path="lib.es2015.iterable.d.ts" />
/// <reference path="lib.es2015.promise.d.ts" />
/// <reference path="lib.es2015.proxy.d.ts" />
/// <reference path="lib.es2015.reflect.d.ts" />
/// <reference path="lib.es2015.symbol.d.ts" />
/// <reference path="lib.es2015.symbol.wellknown.d.ts" />
/// <reference path="lib.es5.d.ts" />
Run Code Online (Sandbox Code Playgroud)
但显然ES6不包括在内,并且它自己的文件没有引用任何内容.我的问题是,如果有人知道,可以安全地假设通过使用es2017 …
typescript ecmascript-6 typescript-typings typescript2.0 ecmascript-2017