M
M
Maks Burkov2017-05-27 04:24:33
JavaScript
Maks Burkov, 2017-05-27 04:24:33

Type definitions in TypeScript, how does it work?

Hello.
I wanted to know from those who know exactly how the system works with Type Definitions?
As far as I understand, these are the files that are needed for Intelisense and Compilation of the code itself, ok, this is understandable.
Since these are files that only contain interfaces, where are the implementations themselves that should be written in .ts ?
I would be grateful for a good link to this topic about these files, how they are built, etc.
I am getting acquainted with Ts, if the question is idiotic, please do not criticize ..
At the time of writing the question, I could not find complete information about this topic that would answer this question.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Lopatin, 2017-05-27
@lorus

The type definition just adds typing to an existing JavaScript implementation.

K
Konstantin Kitmanov, 2017-05-27
@k12th

At the time of writing the question, I could not find complete information about this topic that would answer this question.

https://www.typescriptlang.org/docs/handbook/decla...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question