My goal is to transform the following code snippet:
type UnionType = Variant1 | Variant2
into the desired format below:
type ResultingType = [UnionType, UnionType]
In case the union comprises 3 member types, the tuple should contain 3 elements accordingly.