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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user