tsconfigs

2018-12-08 admin

tsconfigs是什么

什么是tsconfigs,Reusable TypeScript configuration files to extend from.

tsconfigs使用教程帮助文档

tsconfigs

Greenkeeper badge Build Status Badge: npm version badge for package tsconfigs

Reusable TypeScript configuration files to extend from.

Strictly following semantic versioning. So no worries.

Contents

  • common
    • universal
    • browser
    • node

Usage

In your tsconfig.json:

{
  // For the `universal` flavor
  "extends": "./node_modules/tsconfigs/universal",

  "compilerOptions": {
    // Override whatever you like
    "declaration": false
  }
}

Why we cannot extend from "tsconfigs/[flavor]"

Because Node.js resolution for extends was not implemented. Show your enthusiasm at TypeScript issue #18865.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-47628.html

文章标题:tsconfigs

回到顶部