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:
Paul Gschwendtner
2021-06-07 21:04:22 +02:00
committed by Andrew Kushnir
parent ff87da36e7
commit 22290af178
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -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;