ZooWork Market · Skill
extract-enum
Use when refactoring TypeScript code that repeats a fixed set of meaningful values into a shared enum. Apply this when replacing repeated domain strings such as statuses, roles, or states with a reusable string enum, deciding when a union type is better for UI-only props, and migrating call sites without numeric enums, implicit values, reverse lookups, const enums, or declaration merging.