How to make a union type from a type alias or interface properties in TypeScript?
Originally Published Here ๐!
To make a union type from a type alias or interface properties, you can use the indexed access type syntax and then write the property names to make the union type separated by the union operator symbol (|) in TypeScript...
melvingeorge-me.hashnode.dev2 min read