Skip to content

[I] EnumMember

A named enum entry retaining both its owning enum and any spread source.

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
enumpublicEnumOwning enum; spread copies belong to the receiving enum.--
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"EnumMember"Discriminant for a member declaration rather than an enum value wrapper.BaseType.kind-
namepublicstringMember name, distinct from any explicitly assigned value.--
node?publicEnumMemberNodeNode used to construct this type. If the node is undefined it means the type was dynamically built. With typekit for example.BaseType.node-
sourceMember?publicEnumMemberwhen spread operators make new enum members, this tracks the enum member we copied from.--
value?publicstring | numberExplicitly assigned value, or undefined for a member declared with only a name.--