I have a type union defined like:
type UnionType = "PK_1" | "PK_2" | "PK_3" | "PK_4";
I'd like to convert such type union to a type array like:
type ArrayType = Convert<UnionType>; // Should be ["PK_1", "PK_2", "PK_3", "PK_4"];
How can I make such Convert
method?