@serenity-is/corelib / EnumKeyAttribute
Class: EnumKeyAttribute
Defined in: src/base/system.ts:260
Attribute that overrides the lookup key under which an enum is registered in the global type registry. By default the enum's full name is used as the key; this attribute allows an alternative key.
Extends
Constructors
Constructor
new EnumKeyAttribute(
value):EnumKeyAttribute
Defined in: src/base/system.ts:267
Creates a new enum-key attribute.
Parameters
value
string
Alternative registry key for the enum (e.g. "MyApp.MyEnum").
Returns
EnumKeyAttribute
Overrides
Properties
value
value:
string
Defined in: src/base/system.ts:267
Alternative registry key for the enum (e.g. "MyApp.MyEnum").
[typeInfo]
static[typeInfo]:ClassTypeInfo<"Serenity.">
Defined in: src/base/system.ts:261