ts-morph-structures

Home > ts-morph-structures > LiteralTypeStructureImpl

LiteralTypeStructureImpl class

Literals (boolean, number, string, void, etc.), without quotes, brackets, or anything else around them. Leaf nodes.

Signature:

export default class LiteralTypeStructureImpl extends TypeStructuresBase<TypeStructureKind.Literal> 

Extends: TypeStructuresBase<TypeStructureKind.Literal>

Constructors

Constructor Modifiers Description
(constructor)(literal)   Constructs a new instance of the LiteralTypeStructureImpl class

Properties

Property Modifiers Type Description
kind readonly (not declared)  
stringValue readonly string  
writerFunction readonly WriterFunction  

Methods

Method Modifiers Description
clone(other) static  
get(name) static Gets a singleton LiteralTypeStructureImpl for the given name.