How to make union type from all the properties in a type alias or an interface in TypeScript?
Originally Published Here ๐!
To make a union type from all the properties in a type alias or an interface type, we can use the indexed access type syntax, and then we can use the keyof type operator followed by the name of the interface or type alia...
melvingeorge-me.hashnode.dev2 min read