Skip to content

[I] Version

Metadata for a member of the enum registered by @versioned. Instances are shared by metadata queries; treat them as read-only and preserve their identity when using them as keys in version maps.

PropertyTypeDescription
enumMemberEnumMemberSource enum member represented by this version.
indexnumberZero-based position in the version enum; determines ordering, not the member’s value.
namestringEnum member name, independent of any explicit value assigned to the member.
namespaceNamespaceNamespace that registered the version enum with @versioned.
valuestringExplicit enum member value converted to a string, or its name when no value is set.