OptionalavatarThe avatar representation of the enum.
This can be anything and is contextual of how this object is used.
OptionaldescriptionThe description of the enum value.
OptionalnameThe display name of the enum value.
The value being described.
Information for an enum value.
This is useful for front end development when you want to map an enumeration like value to things like a display name, description, and avatar. ECMAScript does not support decorators for literal fields so this is an alternative to describe that kind of information.
This is similar to Metadata from helpful-query, but it's much more specific and specialized to enumerations.