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-07-12 13:11:16 -07:00
committed by Andrew Kushnir
parent ff87da36e7
commit 22290af178
5 changed files with 7 additions and 7 deletions
@@ -99,7 +99,7 @@ export class HashLocationStrategy extends LocationStrategy implements OnDestroy
this._platformLocation.back();
}
historyGo(relativePosition: number = 0): void {
override historyGo(relativePosition: number = 0): void {
this._platformLocation.historyGo?.(relativePosition);
}
}
@@ -173,7 +173,7 @@ export class PathLocationStrategy extends LocationStrategy implements OnDestroy
this._platformLocation.back();
}
historyGo(relativePosition: number = 0): void {
override historyGo(relativePosition: number = 0): void {
this._platformLocation.historyGo?.(relativePosition);
}
}
@@ -193,7 +193,7 @@ export class BrowserPlatformLocation extends PlatformLocation {
this._history.back();
}
historyGo(relativePosition: number = 0): void {
override historyGo(relativePosition: number = 0): void {
this._history.go(relativePosition);
}