Defining a new TypeScript Type by extracting string literal values of an existing object

Many times we need to use string literals that only exist in another object in TypeScript. Examples include: use in a database lookup table or displaying in a GUI. The alchemy of the syntax to achieve this can appear a Continue reading