Skip to content

Documentation / listr2 / getRenderer

Function: getRenderer()

getRenderer<Renderer, FallbackRenderer>(options): SupportedRenderer<ListrRendererFactory>

Type parameters

Renderer extends ListrRendererValue

FallbackRenderer extends ListrRendererValue

Parameters

options

options.renderer: Renderer

options.rendererOptions: ListrGetRendererOptions<Renderer>

options.fallbackRenderer: FallbackRenderer

options.fallbackRendererOptions: ListrGetRendererOptions<FallbackRenderer>

options.fallbackRendererCondition?: boolean | () => boolean

options.silentRendererCondition?: boolean | () => boolean

Returns

SupportedRenderer<ListrRendererFactory>

Source

packages/listr2/src/utils/ui/renderer.ts:26