In most code bases, we need a way to uniquely identify certain values and objects. It can be when keeping track of models in a cache or database, or when performing a network request to fetch more data for a certain entity.
This week, let’s take a look at how we can create type-safe identifiers that enable us to write more robust model handling code.