I have this simple union type.
type ItemType = 'type1' | 'type2' | 'type3'
My goal is to define an array using this type so that it contains all string literals from ItemType in no specific order.
For example, ['type1', 'type2', 'type3'] and ['type3', 'type2', 'type1'] are VALID.
But, ['type1', 'type2'] and ['type1', 'type2', 'type3', 'type4'] are INVALID
I only got so far:
const myArray: ItemType[] = ['type1', 'type2', 'type3']