quezlatch / the-types-in-typescript

The Types in TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Types in TypeScript

Example code for talk

The idea is that we take a small example piece of JavaScript and gradually introduce more type features from TypeScript to improve the domain model.

The snippits are:

The typescript snippits have compile errors, and the idea is by correcting them you will gradually move towards making illegal states unrepresentable.

About

The Types in TypeScript


Languages

Language:TypeScript 92.4%Language:JavaScript 7.6%