Skip to content

gunshi / renderer / renderValidationErrors

Function: renderValidationErrors()

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

Render the validation errors.

Type Parameters

Type ParameterDefault type
Options extends ArgOptionsArgOptions

Parameters

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

Returns

Promise<string>

A rendered validation error.

Released under the MIT License.