Readonly
isDisabled• isDisabled: boolean
Should be true if related stream is not TTY.
Optional
cleanup▸ cleanup(): void
Called after the last update.
Returns: void
Optional
init▸ init(): void
Called before the first update.
Returns: void
Optional
teardown▸ teardown(): void
Called the first time a removed message is encountered.
Returns: void
Optional
updateBegin▸ updateBegin(): void
Called before writing a group of buffered messages.
Returns: void
Optional
updateEnd▸ updateEnd(): void
Called after writing a group of buffered messages.
Returns: void
▸ write(text
: string | null, isBuffered
: boolean): void
Called to write text to the stream.
Implementation Notes:
updateStart
method will be called to start an update batch before writing buffered messages.updateEnd
method will be called to signify the end of an update batch after messages are written.Parameters:
Name | Type |
---|---|
text |
string | null |
isBuffered |
boolean |
Returns: void