Skip to content
TypeScript tutorial in code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Typescript tutorial

This is the tutorial project for TypeScript in Node.js, which is result of going through the documentation and removing unnecessary natural language description (or rather translating it to pure TypeScript). It consists of following parts:

  1. ECMA6 features overview from here.
  2. Basic Types (docs)
  3. Variable Declarations (docs)
  4. Interfaces (docs)
  5. Classes (docs)
  6. Functions (docs)
  7. Generics (docs)
  8. Enums (docs)
  9. Advanced Types (docs)
  10. Namespaces (docs)
  11. Decorators (docs)
  12. Mixins (docs)
  13. Using JavaScript with declaration files

How to run it in the shell

  1. Install dependencies using npm install.
  2. Run using node -r ts-node/register src/index.ts [LESSON_NUMBER], where LESSON_NUMBER is in format: 00, 01, 02 etc.

How to debug it in WebStorm/Idea

  1. Install TypeScript plugin and Node.js plugin.
  2. Use Node.js Run/Debug configuration with the same command line as above.
  3. After successful configuration you will be able to create breakpoint in src/index.ts and the execution will stop there.
You can’t perform that action at this time.