autoTerminalSink
autoTerminalSink<
TData>(stream,terminal,options):ISink<TData>
Defined in: packages/app-report/src/sink/auto-terminal-sink.ts:22
Selects createPlainLineSink or LiveRegionSink based on
terminal.interactive — the two P0 rendering sinks are given equal billing
here rather than one wrapping the other, since a live-region formatter
(progress bars, live tails) is typically not the same one wanted for a plain
non-interactive log.
Type Parameters
Section titled “Type Parameters”TData
Parameters
Section titled “Parameters”stream
Section titled “stream”WritableStream<string>
terminal
Section titled “terminal”Terminal
options
Section titled “options”AutoTerminalSinkOptions<TData>
Returns
Section titled “Returns”ISink<TData>