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
Constructor | Modifiers | Description |
---|---|---|
(constructor)(options) | Constructs a new instance of the CallbackWritable class |
Methods
Method | Modifiers | Description |
---|---|---|
onWriteChunk(chunk) | protected |