Skip to content

gunshi / renderer / renderValidationErrors

Function: renderValidationErrors()

ts
function renderValidationErrors<G>(_ctx, error): Promise<string>;

Render the validation errors.

Type Parameters

Type ParameterDefault type
G extends GunshiParams<{ args: Args; extensions: { }; }>DefaultGunshiParams

Parameters

ParameterTypeDescription
_ctxCommandContext<G>-
errorAggregateErrorAn AggregateError of option in args-token validation

Returns

Promise<string>

A rendered validation error.

Released under the MIT License.