TypeScript explains various file extensions?

In an attempt to understand TypeScript a little more, what are the relationships between all file extensions?

  • TypeScript *.ts
  • Definition *.d.ts
  • Map, *.map
  • Javascript *.js
+4
source share
1 answer

At first I began to get into the question, thinking to myself that someone would come and help me. Then I noticed the “answer my question” option, and I was inspired by Jeff Atwood encouraging the blog post - so I decided to try and answer my own question. I had to do some research, but now I have the understanding that I was originally looking for.


  • TypeScript *.ts

JavaScript, "" JavaScript. , IDE intellisense.

  • , *.d.ts

A *.d.ts TypeScript API, JavaScript. API .js, - JQuery jQuery.js jQuery.d.ts a TypeScript , JQuery, , intellisense .

  • , *.map

.map - , "" JavaScript TypeScript, . CoffeeScript.

  • JavaScript, *.js

MDN:

JavaScript - -, - . . (, -) JavaScript , .

.ts .js , TypeScript JavaScript.

+9

All Articles