Type Alias: REnumFieldValue
ts
type REnumFieldValue = string | number | bigint;Supported enum field values representing any enumerable type. Includes string for text-based enums (most common), number for numeric status codes or identifiers, and bigint for high-precision scenarios requiring large integer enum values.
Example
typescript
// String-based status enum
type Status = "draft" | "published" | "archived";
const status: REnumFieldValue = "published";
// Numeric priority enum
enum Priority {
Low = 1,
Medium = 2,
High = 3,
Critical = 4,
}
const priority: REnumFieldValue = Priority.High; // 3
// BigInt identifier enum
const largeId: REnumFieldValue = 9007199254740991n;