• Skip to main content
  • Skip to primary sidebar
  • Home
  • Angular
  • ASP.NET Core
  • Entity Framework
    • Entity Framework 6
    • Entity Framework Core
  • Crystal Reports
  • C#
  • ASP.NET
  • About Us
    • Privacy Policy
    • Contact Us

TekTutorialsHub

Free Online Tutorials

Typescript Installation & environment setup

August 10, 2019 by TekTutorialsHub Leave a Comment

Introduction
Hello World Example

Before we dive into TypeScript, we need to install the required tools and dependencies. In this tutorial, we will learn how to install TypeScript and set up our development environment. We will learn how to Install and run typescript in windows.

To run typescript, we need to install

  • Typescript compiler
  • Code Editor

Table of Content

  • Installing Typescript
  • Installing Visual Studio Code
  • Summary

Installing Typescript

The Typescript is installed using the npm package manager or NPM. It is a default package manager for Node.js and is installed when the Node.js is installed.

Download & Install NodeJs

You can download and install Node.js from downloading it from the official website https://nodejs.org/.

Once you install the Node, you can install the typescript compiler using the following command from the command prompt

1
2
3
 
npm install -g typescript
 
Install TypeScript Compiler
Installing TypeScript Compiler

Installing Visual Studio Code

Next, we will need a Code editor. You have many choices here. For this tutorial, we will use Visual Studio Code.

You can download it from the official https://code.visualstudio.com/download

Download and install visual studio code

That’s it.

Summary

Installing Typescript compiler is as easy as installing an npm package. In the next tutorial, we will build a simple Hello World program to get started with TypeScript.

Introduction
Hello World Example

Filed Under: TypeScript Tagged With: Install TypeScript

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Typescript Tutorial

Getting Started

  1. Introduction To TypeScript
  2. TypeScript Installation and Environment Setup
  3. TypeScript Hello World Example
  4. Enable Compile on Save in Visual Studio Code
  5. Syntax and Basic Rules

Typescript Basics

  1. Typescript Data Types
  2. Type Annotations
  3. Variable Declaration
  4. Identifiers & keywords
  5. Variable Scope
  6. Let, Var & Const
  7. Constants
  8. Type Inference

Strings

  1. String Data Type
  2. Template strings/Literal strings
  3. Tagged Templates

Numbers

  1. Number Data Type
  2. NaN in Typescript
  3. Min, Max & Safe Values
  4. EPSILON & Floating Point Precision
  5. Infinity

BigInt

  1. BigInt data type
  2. BigInt Vs Number

Boolean

  1. Boolean Data Type

 

 

Copyright ©2008-2018

About us Contact Privacy Policy

Dec,07,2019 08:59:46 PM