typeScript is a typed superset of JavaScript that compiles to plain JavaScript.
- Open source programming language.
- Typed superset javascript.
- Compiles down to plain javascript.
- Relation to javascrpt.
- Optional static typing and type interface.
- IDE Support.
- Fefactor code very easily.
- It's main programmng language of Angular.
tsc file_name --watch
or
tsc --watch
1st time when I stated typeScript I was geting a simple error. Here I will share below how to run typescript:
npm init -y
npm install --save-dev typescript @types/node
echo 'console.log("test")' > index.ts
tsc file_name.ts
If you like to opne
ES6
mode please run the command
tsc file_name -t es6