set()
Sets the `RangeError` object under the given `id`
RangeErrors.prototype.set()
RangeErrors.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
min?: number
max?: number
template =RangeErrors.template
template =RangeErrors.templateReturn type
this
thisExample usage
Last updated