mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(common): ensure compatibility with noImplicitOverride (#42512)
Adds the `override` keyword to the `common` sources to ensure compatibility with `noImplicitOverride`. PR Close #42512
This commit is contained in:
committed by
Andrew Kushnir
parent
ff87da36e7
commit
22290af178
@@ -226,7 +226,7 @@ export class HttpHeaderResponse extends HttpResponseBase {
|
||||
super(init);
|
||||
}
|
||||
|
||||
readonly type: HttpEventType.ResponseHeader = HttpEventType.ResponseHeader;
|
||||
override readonly type: HttpEventType.ResponseHeader = HttpEventType.ResponseHeader;
|
||||
|
||||
/**
|
||||
* Copy this `HttpHeaderResponse`, overriding its contents with the
|
||||
@@ -274,7 +274,7 @@ export class HttpResponse<T> extends HttpResponseBase {
|
||||
this.body = init.body !== undefined ? init.body : null;
|
||||
}
|
||||
|
||||
readonly type: HttpEventType.Response = HttpEventType.Response;
|
||||
override readonly type: HttpEventType.Response = HttpEventType.Response;
|
||||
|
||||
clone(): HttpResponse<T>;
|
||||
clone(update: {headers?: HttpHeaders; status?: number; statusText?: string; url?: string;}):
|
||||
@@ -324,7 +324,7 @@ export class HttpErrorResponse extends HttpResponseBase implements Error {
|
||||
/**
|
||||
* Errors are never okay, even when the status code is in the 2xx success range.
|
||||
*/
|
||||
readonly ok = false;
|
||||
override readonly ok = false;
|
||||
|
||||
constructor(init: {
|
||||
error?: any;
|
||||
|
||||
Reference in New Issue
Block a user