Object Types in TypeScript
It’s time, we can finally discuss object-oriented programming and how it relates to TypeScript! TypeScript’s object types are extremely useful, as they…
THE BLOG / 299 ARTICLES
Engineering, building products, and learning along the way.
The full archive, with room to explore.
It’s time, we can finally discuss object-oriented programming and how it relates to TypeScript! TypeScript’s object types are extremely useful, as they…
Our first example of a complex type is also one of the most useful: enums. We use enums when we’d like to enumerate all the possible values that a variable…
HTML is the standard markup language for creating Web pages.
We can also use generics to create collections of typed functions. Generic functions like these are probably easiest to understand via an example. And for…
TypeScript’s generics are ways to create collections of types (and typed functions, and more) that share certain formal similarities. These collections are…