A Super Quick TypeScript Overview

What Even is TypeScript?

* Superset of JavaScript with static typing

* Support for things like interfaces, generics, unions, etc.

* Pretty great tooling (errors at compile-time!)

interface Point {
  x: number;
  y: number;
}

function logPoint(p: Point) {
  console.log(`${p.x}, ${p.y}`);
}

// logs "12, 26"
const point = { x: 12, y: 26 };
logPoint(point);

(Valiant attempt at converting a project, go!)

deck

By Cameron Sampson

deck

  • 83