Skip to content

[I] Enum

An ordered set of named members with optional explicit string or numeric values.

PropertyModifierTypeDescriptionOverridesInherited from
creating?publictrueIf the type is currently being created.-BaseType.creating
decoratorspublicDecoratorApplication[]Applications used when finishing this type, including copied or synthesized applications.-DecoratedType.decorators
entityKindreadonly"Type"Distinguishes semantic types from values and parameter constraints.-BaseType.entityKind
expressionpublicbooleanWhether this enum was declared in expression position (anonymous enum { ... }) rather than as a named statement.--
instantiationParameters?publicType[]Legacy instantiation metadata. The compiler’s type checker does not populate this field, so its absence does not indicate whether this type is a template instance.-BaseType.instantiationParameters
isFinishedpublicbooleanReflect if a type has been finished(Decorators have been called). There is multiple reasons a type might not be finished: - a template declaration will not - a template instance that argument that are still template parameters - a template instance that is only partially instantiated(like a templated operation inside a templated interface)-BaseType.isFinished
kindpublic"Enum"Discriminant for enum types rather than individual members.BaseType.kind-
memberspublicRekeyableMap<string, EnumMember>The members of the enum. Members are ordered in the order that they appear in source. Members obtained via ... are inserted where the spread appears in source.--
namepublicstringDeclared name, or an empty string for an anonymous enum expression.--
namespace?publicNamespaceContaining namespace, when associated with a namespace.--
node?publicEnumStatementNode | EnumDeclarationExpressionNodeNode used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example.BaseType.node-