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.

1 min read typescript
Typescript read-only object to an Enum type
Sometimes I need to convert a read-only object to an enum type; so I created a simple function utilit...
#typescript
#webdev
Text size