Constructors
constructor
- new Block(text: string, style?: Style): Block
Parameters
- text: string
Optional
style: Style
Accessors
ansi
- get ansi(): string
Returns string
style
- get style(): undefined | Style
Returns undefined | Style
text
- get text(): string
Returns string
Methods
toString
- toString(): string
Returns string
A representation of a run of text in a given style