Npm types or types or @type or what?

I am using VS 2015 update 3, Angular 2.1.2, Typescript 2.0.6

Can anyone clarify what types are compared to npm @types compared to any other documents that are hard to find this month?

Or simply indicate the path to the documentation about what and how to use these things. Preferably, the documents should be updated.

In addition, in a related sense, how to remove. Wherever I look, there are useful extensions for installing packages, but don't delete anything, which I can say at least. I installed the package installer extension, but it seems rather limited.

The pain of using this material in Visual Studio makes you want to quit and make MVC again. Maybe it's just me, but it doesn't look like it should be so complicated.

+7
angular npm typescript node-modules typescript-typings
source share
1 answer

Use @types (do not use typing)

Pros:

  • In package.json package (upgrade is done with npm upgrade)
  • No need for separate packages (typings), files (typings.json) ...
  • In node_modules (structure of a cleaner directory)

Simplified declaration file (.d.ts)

https://blogs.msdn.microsoft.com/typescript/2016/09/22/announcing-typescript-2-0/

+7
source share

All Articles