I am trying to figure out how to create an Array
out of a union type that I have created earlier.
Example:
type Temperature = 'cold' | 'warm' | 'hot';
// The end result of my array should look like this:
const ArrayOfTemperatures = ['cold', 'warm', 'hot'];
As seen in the example above, I would like to convert a union type into an array of those types, without allowing duplication if possible.