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
Luca Del Puppo Luca Del Puppo

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. Alt Text Some examples of use. Alt Text

Gits URL

Luca Del Puppo

Written by Luca Del Puppo

Run, Code & Learn

AI Native Engineer at Nearform based in Povegliano (TV), Italy. Google Developer Expert in Web Technologies, GitKraken Ambassador, and Codemotion Ambassador.