Skip to content

sonam-serchan/typescript-essentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Typescript

Prerequisites

  • node
  • npm

Installation

Install typescript globally

npm install --location=global typescript

Configuration - tsconfig.json

tsc --init

outDir, include, target, noImplicitlyAny, noEmitOnError

Run

First compile typescript files using tsc compiler e.g. for file called index.ts you need to do:

tsc index.ts

To run each files, use node to run your js files inside the outDir folder (where you have configured to output the compiled javascript file)

node dist/index.js

About

Getting started with TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published