Skip to content

typeScript is a typed superset of JavaScript that compiles to plain JavaScript. If you use typeScript you may maintain and support all versions.

Notifications You must be signed in to change notification settings

mbrsagor/typeScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typeScript

What is typeScript?

typeScript is a typed superset of JavaScript that compiles to plain JavaScript.

Why & what typescript?

  • 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.
How to automatically (watch) re-compile?

tsc file_name --watch

or tsc --watch

Install Dependency

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

How to convert typeScript any mode? Please follow the command line hopefully it's will be work.

tsc file_name.ts

If you like to opne ES6 mode please run the command

tsc file_name -t es6

Here -t is target mode

About

typeScript is a typed superset of JavaScript that compiles to plain JavaScript. If you use typeScript you may maintain and support all versions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published