Checking Types Against the Real World in TypeScript
— TypeScript — 1 min read
This is an excerpt of a post that I wrote for Olio Apps.
The shape of data defines a program. There are important benefits to writing out types for your data.
Let’s consider a Hacker News client, which consumes stories and other items from the Hacker News API. This is a TypeScript type that describes the format for stories:
» Read the rest on the Olio Apps blog.