V
V
Vitaly2016-11-18 18:10:39
Node.js
Vitaly, 2016-11-18 18:10:39

Where are .d.ts headers downloaded from these days?

I know about tsd and typings. There, everyone has their own incomprehensible moments, but the general one is how to publish headers with your modules? That is, how to set up recognition of headers from both uploaded and your own?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Lopatin, 2016-11-18
@vitali1995

No more tsd and typings needed. Everything is in npm. For typings, a namespace was specially created @types.
For example: npm install @types/node --save-dev. And in tsconfig.json:

{
  "compilerOptions": {
    "types": ["node"]
  }
}

V
Vadim Matkarimov, 2016-11-18
@SuccessVM

You can manually download DefinitelyTyped
A quick start on using Typings .
Installation example from instructions above:
typings install dt~angular-formly --global

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question