Skip to content
API/EnumValues

EnumValues

src/types/enum-values.type.tstype

The values an enum-like param accepts: a string enum object, or a tuple of strings. Numeric enums are refused — their objects carry reverse mappings.

type EnumValues = Readonly<Record<string, T>> | readonly T[]