Question

I installed the editor plugin and these are the installed files:

TypeScript files

I'm just curious as to how the compiler works and if anyone could give an overview of these files?

  1. There are also two JavaScript files where I expected only one, what do they do (one must be the compiler)? is tsc the compiler and typescript the syntax parser?
  2. Does tsc.exe use the Chakra engine?
  3. What is the intelligence written in? What is the lib file for? (actually I can answer this one it's the documentation for the ECMAScript APIs)
Was it helpful?

Solution

There are also two JavaScript files where I expected only one, what do they do (one must be the compiler)? is tsc the compiler and typescript the syntax parser?

tsc.js is the command-line compiler used by tsc.exe. Both typescript.js and tsc.js are largely identical but tsc.js has the command-line options parser and batch compiler needed for the command-line compile. typescript.js is just the core compiler.

What is the intelligence written in?

In TypeScript.

What is the lib file for?

It is the type description of the JavaScript runtime.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top