set()
Sets the `ValidationError` object under the given `id`
ValidationErrors.prototype.set()
ValidationErrors.prototype.set()public set<ErrorId extends Id>(
problem: string,
fix: string,
id: ErrorId,
template = ValidationErrors.template
): this {
this.isAllowedId(id) &&
this.errors.set(id, new ValidationError(problem, fix, id, template));
return this;
}Generic type variables
Parameters
template =ValidationErrors.template
template =ValidationErrors.templateReturn type
this
thisExample usage
Last updated