<aside> 💡 Typescript compiler

</aside>

Text compiler

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8d2db0f5-9310-473c-8355-55e35561ace1/PNG_image.png

<aside> 💡 Type system - a set of rules that a typechecker uses to assign types to your program.

</aside>

We can annotate or allow ts to infer our types.

Errors are surfaced at compile time.

TS- statically typed. Gradually typed.

JS - dynamically typed. Weakly typed.

Code editor setup

I'm going to be using emacs and i-know i already have tide installed. What other setup do I need to do?

Tsconfig

Is Es2015 still the best lib and target?

Interesting, following the example tsconfig I got an error because console wasn’t included in es2015 lib, had to add DOM for that to work.