ts-morph-structures

Home > ts-morph-structures > EnumMemberImpl

EnumMemberImpl class

Signature:

export default class EnumMemberImpl implements EnumMemberStructureClassIfc 

Implements: EnumMemberStructureClassIfc

Constructors

Constructor Modifiers Description
(constructor)(name)   Constructs a new instance of the EnumMemberImpl class

Properties

Property Modifiers Type Description
docs readonly (JSDocImpl | string)[]  
initializer?   stringOrWriterFunction | undefined (Optional)
kind readonly StructureKind.EnumMember  
leadingTrivia readonly stringOrWriterFunction[]  
name   string  
trailingTrivia readonly stringOrWriterFunction[]  
value?   number | string (Optional) Convenience property for setting the initializer.

Methods

Method Modifiers Description
clone(source) static  
toJSON()