Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.52 KB

README.md

File metadata and controls

50 lines (40 loc) · 1.52 KB

TypeScript Intro

Handbook

Recommended reading: Basic Types through Advanced Types

TypeScript Release Updates

Recommended reading: TypeScript 1.1 release notes through the most recent release notes. Information in these release notes is not always reflected in the handbook.

Getting Started

  • Install TypeScript

    npm i -g typescript
    
  • Setup

    • Manual

      mkdir ts-demo
      cd ts-demo
      tsc --init
      touch ts_practice.ts
      
    • Or, clone from git

      git clone https://github.com/rdhelms/typescript-reference.git
      
  • Compile

    tsc
    

VS Code Tips

You may be used to these already, but don't forget they work for TypeScript type variables and definitions as well.

  • Hover --> Detailed type info, error messages, and documentation abound
  • F12 --> Go to definition
  • Shift + F12 --> Find all references