Skip to content

gunshi / default / RenderingOptions

Interface: RenderingOptions<G>

Rendering control options

Since

v0.27.0

Type Parameters

Type ParameterDefault typeDescription
G extends GunshiParamsConstraintDefaultGunshiParamsA type extending GunshiParams to specify the shape of render options.

Properties

PropertyTypeDescription
header?(ctx) => Promise<string> | nullHeader rendering configuration - null: Disable rendering - function: Use custom renderer - undefined (when omitted): Use default renderer
usage?(ctx) => Promise<string> | nullUsage rendering configuration - null: Disable rendering - function: Use custom renderer - undefined (when omitted): Use default renderer
validationErrors?(ctx, error) => Promise<string> | nullValidation errors rendering configuration - null: Disable rendering - function: Use custom renderer - undefined (when omitted): Use default renderer

Released under the MIT License.