Skip to content

Function: renderValidationErrors()

Render the validation errors.

Signature

ts
declare function renderValidationErrors<G extends GunshiParams = DefaultGunshiParams>(_ctx: CommandContext<G>, error: AggregateError): Promise<string>

Type Parameters

Name
G extends GunshiParams = DefaultGunshiParams

Parameters

NameTypeDescription
_ctxCommandContext<G>A command context
errorAggregateErrorAn AggregateError of option in args-token validation

Returns

Promise<string> — A rendered validation error.

Released under the MIT License.