Typescript generic extends union type July 8, 2019 16 32 64 128 Typescript generic type Union type in typescript