Generating Union Types from a Bijective Map Using Typescript's Const Assertion
In this post, I explore a handful of TypeScript features to create Union types from a Bijective Map and use them to restrict what value (not just type) the keys can take when sending data object to Google Analytics. As a recap, two sets are describe...
Jan 31, 202012 min read816

