What's the equivalence of typings globalDevDependencies for npm @types packages?

后端 未结 1 998
执笔经年
执笔经年 2021-01-21 15:30

I want to upgrade an tsc@1.8 project to tsc@2 and in the process ditch typings from my tool chain.

It\'s not a problem for the common depencies as these dep

相关标签:
1条回答
  • 2021-01-21 15:50

    This thread pointed me in the right direction, as I have to add the types to the tsconfig.json:

    {
      "compilerOptions": {
        "target": "ES6",
        "types": ["node", "mocha", "chai"],
        ...
    }
    

    The types option also have a verbose documentation.

    0 讨论(0)
提交回复
热议问题