RoadmapShopEvents
Skip to main content

Home > @rushstack/terminal > CallbackWritable

CallbackWritable class

This class enables very basic TerminalWritable.onWriteChunk() operations to be implemented as a callback function, avoiding the need to define a subclass of TerminalWritable.

Signature:

export declare class CallbackWritable extends TerminalWritable 

Extends: TerminalWritable

Remarks

CallbackWritable is provided as a convenience for very simple situations. For most cases, it is generally preferable to create a proper subclass.

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the CallbackWritable class

Methods

MethodModifiersDescription
onWriteChunk(chunk)protected