Creating Enums from Lists: Seeking a Simplified Approach
Hey! I am getting started and I was wondering if there is a way to create an enum from a list of values. I find myself creating enums as objects where key and value are the same which is verbose. Coming from valibot they have a function called picklist that does this. Thanks!
