Home > ts-morph-structures > LiteralTypeStructureImpl
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>
| Constructor | Modifiers | Description |
|---|---|---|
| [(constructor)(literal)](/es-membrane/ts-morph-structures/api/ts-morph-structures.literaltypestructureimpl._constructor_.html) | Constructs a new instance of the `LiteralTypeStructureImpl` class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| [kind](/es-membrane/ts-morph-structures/api/ts-morph-structures.literaltypestructureimpl.kind.html) | `readonly` | (not declared) | |
| [stringValue](/es-membrane/ts-morph-structures/api/ts-morph-structures.literaltypestructureimpl.stringvalue.html) | `readonly` | string | |
| [writerFunction](/es-membrane/ts-morph-structures/api/ts-morph-structures.literaltypestructureimpl.writerfunction.html) | `readonly` | WriterFunction |
| Method | Modifiers | Description |
|---|---|---|
| [clone(other)](/es-membrane/ts-morph-structures/api/ts-morph-structures.literaltypestructureimpl.clone.html) | `static` | |
| [get(name)](/es-membrane/ts-morph-structures/api/ts-morph-structures.literaltypestructureimpl.get.html) | `static` | Gets a singleton `LiteralTypeStructureImpl` for the given name. |