The following examples are included in this project.
Learning TypeScript Samples
samples folder contains a simple project to illustrate various TypeScript features. The examples are best viewed from an IDE like Visual Studio Code for development-time feedback. From the folder, you can:
npm install to install pre-requisite dependencies.
node 001-types runs the first example.
npm run-script tsc:w builds and watches, useful for commenting/uncommenting code to walk through the example.
npm run-script tsc:es6 builds for ECMAScript 2015 to illustrate differences in output despite the same TypeScript source.
project folder contains a very simple web project that uses TypeScript.
- Play with TypeScript in the browser
- Read the TypeScript documentation
- Watch the video to build your first TypeScript project on Node.js