Abstract
Abstract base class for strongly-typed enumerations.
Provides a pattern for creating type-safe enums that:
instanceof
getValues()
export class BlendMethod extends Enum<string> { static readonly Overwrite = new BlendMethod('source-over'); static readonly Add = new BlendMethod('lighter');} Copy
export class BlendMethod extends Enum<string> { static readonly Overwrite = new BlendMethod('source-over'); static readonly Add = new BlendMethod('lighter');}
The type of the enum class itself (self-referential)
Protected
Protected constructor to prevent direct instantiation. Only subclasses should instantiate enum members.
The primitive value for this enum member
Readonly
The primitive value of this enum member.
Convert enum to its primitive value (JSON serialization).
Convert enum to its primitive value.
Static
Retrieve all available enum values.
Array of all enum members
Abstract base class for strongly-typed enumerations.
Provides a pattern for creating type-safe enums that:
instanceofchecksgetValues()for retrieving all optionsExample