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) | Constructs a new instance of the LiteralTypeStructureImpl class |
Property | Modifiers | Type | Description |
---|---|---|---|
kind | readonly |
(not declared) | |
stringValue | readonly |
string | |
writerFunction | readonly |
WriterFunction |
Method | Modifiers | Description |
---|---|---|
clone(other) | static |
|
get(name) | static |
Gets a singleton LiteralTypeStructureImpl for the given name. |