constructor(variants: Record<string, number>)
View sourceCreates enum reflection metadata from variant names and discriminants.
The record is copied into a new map; later changes to the record do not
change this metadata. EnumInfo has no default factory, so provide the
complete variant record when constructing it.
