The union of string literals that make up this enum
String tag used by Object.prototype.toString() for better debugging.
Number of enum values
Array of all valid enum values in declaration order
Makes the StrEnum iterable, allowing use in for...of loops and array destructuring.
Iterator that yields enum values in declaration order
Compare two strings based on their enum order.
-1 if a < b, 0 if a === b, 1 if a > b, undefined if either is invalid
Check if first enum value comes before second in declaration order.
True if a comes before b in the enum declaration
Get the ordinal position of an enum value, or length if not found. Useful for sorting where invalid values should sort last.
Enum value to find (can be null/undefined)
Index of the value, or enum length if not found
Helper methods and properties for string enum types created with strEnum.
Provides type-safe utilities for working with predefined string literal types, including validation, comparison, and transformation operations.