—-> 文档地址
    _

    选项字段 类型 默认值 说明
    allowJs boolean false 允许编译 JS 文件
    checkJs boolean false 报告 JS 文件中存在的类型错误需要配合 allowJs 使用
    declaration boolean false 生成对应的 .d.ts 文件
    declarationDir string - 生成的 .d.ts 文件存放路径默认与 .ts 文件相同
    experimentalDecorators boolean false 启用实验功能-ES 装饰器
    jsx string Preserve .tsx 中支持 JSX :ReactPreserve详细说明
    jsxFactory string React.createElement jsx 设置为 React 时使用的创建函数
    lib string[] - 编译时引入的 ES 功能库,包括:es5es6es7dom 等。如果未设置,则默认为: targetes5 时: ["dom", "es5", "scripthost"] targetes6 时: ["dom", "es6", "dom.iterable", "scripthost"]
    module string target === "es3" or "es5" ?``"commonjs" : "es6" 生成的模块形式:nonecommonjsamdsystemumdes6es2015esnext 只有 amdsystem 能和 outFile一起使用 targetes5 或更低时可用 es6es2015
    moduleResolution string module === ``"amd" or "system" or "es6" ?`` "classic" : "node" 模块解析方式,详细说明
    noImplicitAny boolean false 存在隐式 any 时抛错
    noImplicitReturns boolean false 不存在 return 时抛错
    noImplicitThis boolean false this 可能为 any 时抛错
    outDir string - 编译生成的文件存放路径默认与 .ts 文件相同
    sourceMap boolean false 生成 .map 文件
    target string es3 生成 .js 文件版本