arktypea
arktype•8mo ago
oddcelot

Equivalent of Object.values for unions

hi there 👋

i'm trying to extract the values of an object in order to have it as a union of options and ended up with this right here
is there a better maybe more elegant solutions to this? 😅
image.png
Was this page helpful?