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