Luca Del Puppo Posted on Feb 6, 2021 Typescript read-only object to an Enum type #typescript #webdev Sometimes I need to convert a read-only object to an enum type; so I created a simple function utility that helps me to convert this object to an "enum" type. This is the code to build the type. Some examples of use. Gits URL Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)