TypeScript
TypeScript is JavaScript with syntax for types.
TypeScript is a strongly typed programming language which builds on JavaScript giving you better tooling at any scale.
→ typescriptlang.org, GitHub
Learn
Documentation
Versions
Quickstart
5 minutes tutorial
TypeScript must be known globally on your machine:
npm install -g typescript
Create a new folder and initiate TypeScript configuration:
tsc --init
Review the fille name
tsconfig.json
that has been generated
Create a file named
greeter.ts
Run the compiler:
tsc
Review the generated file
greeter.js
You can also have the compiler run with the watch option:
tsc --watch
Create a
greeter.html
file and open the file in a browser:
Last updated