gunshi / default / RendererDecorator
Type Alias: RendererDecorator()<T>
ts
type RendererDecorator<T> = (baseRenderer, ctx) => Promise<T>;Renderer decorator type. A function that wraps a base renderer to add or modify its behavior.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
baseRenderer | (ctx) => Promise<T> | The base renderer function to decorate |
ctx | CommandContext | The command context |
Returns
Promise<T>
The decorated result
