Skip to content

Formatter

Formatter<TData> = (event, context) => string | null

Defined in: packages/app-report/src/formatter.ts:34

Renders one event to a chunk of output, or null to render nothing for it.

The formatter is called for every event, in write order, and may be called multiple times for the same scope (e.g. "scope-progress" events). It may also be called for events that are never written to the sink, e.g. when a NoRepeatProxy or TailWindowProxy discards them.

TData

ReportEvent<TData>

FormatContext

string | null