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>

Defined in

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