delete()
Deletes the error of a specified id from the object
CommonErrors.prototype.delete()
CommonErrors.prototype.delete()Deletes the error of a specified id from the object.
public delete<ErrorId extends Id>(id: ErrorId): this {
this.#errors.delete(id);
return this;
}Generic type variables
A generic type variable ErrorId constrained by the generic type variable Id of the CommonErrors object indicates the type picked from the Id and its exact type is useful in picking the specific error from the storage.
Parameters
The unique identification of a generic type variable ErrorId to remove the error from the object.
Return type
this
thisExample usage
Last updated
Was this helpful?