Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

TypeScript Install

First Step: Check node install or not: node --version


Second Step

// global
npm install -g typescript

// local
npm install --save-dev typescript

Check installed or not: tsc --version

How TypeScript works

tsc file-name

// If you don't want to do the same comman everytime, then use the following
tsc file-name --watch

How to run TypeScript code

  • tsc file-name to convert ts file to js file
  • now run js code using node

else

npm i -g ts-node-dev
ts-node-dev --respawn --transpile-only ts_file_location




</br>

# TypeScript Configuration
- in terminal -> tsc --init
- edit rootDir, outDir of tsconfig.json as shown in the following example
- you can also change es version from target of tsconfig.json

</br>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages