Goal: Implement permutation type that transforms union types into the array that includes permutations of unions. Source challenge: https://github.com/type-challenges/type-challenges/tree/main/questions/00296-medium-permutation Reference explanation: https://github.com/ghaiklor/type-challenges-solutions/blob/main/en/medium-permutation.md
Run "Check Solution" to validate your code in the browser.