Libraries#
TypeScript runs anywhere JavaScript does and uses the same package
ecosystem (npm). Most popular JS libraries ship with type definitions or
have community types under the @types scope.
Built-in Globals#
Array,Map,Set,WeakMap,WeakSetPromise,async/awaitJSON.parse/JSON.stringifyDate,Math,Intlfetch(in modern Node and browsers)
Tooling#
$ npx tsc --init
$ npx tsc
$ npx tsc --noEmit
$ npx tsx src/main.ts
$ npm install -D typescript @types/node