Type Script
Type Script
Module
Freshness
Global
compose multiple type annotations into a single file for common types, interfaces,
global.d.ts
zero runtime JS impact Interfaces global namespace
implements browser
Project
ambient declarations common JS stuff JS envs
string node.js
type annotation TypeScript
number Primitive Types --noLib
boolean
lib.d.ts ?
instanceof
no any runtime is not casting
inferred type
in Type Assertion
as foo vs. <foo>
Double assertion
the assertion from type S to T succeeds ?
either S is a subtype of T
or T is a subtype of S