refactor(elements): ensure compatibility with noImplicitOverride (#42512)
Adds the `override` keyword to the `elements` sources to ensure compatibility with `noImplicitOverride`. PR Close #42512
This commit is contained in:
parent
22290af178
commit
c13ccc37cf
|
@ -125,9 +125,9 @@ if (browserDetection.supportsCustomElements) {
|
|||
it('should not break if `NgElementStrategy#events` is not available before calling `NgElementStrategy#connect()`',
|
||||
() => {
|
||||
class TestStrategyWithLateEvents extends TestStrategy {
|
||||
events: Subject<NgElementStrategyEvent> = undefined!;
|
||||
override events: Subject<NgElementStrategyEvent> = undefined!;
|
||||
|
||||
connect(element: HTMLElement): void {
|
||||
override connect(element: HTMLElement): void {
|
||||
this.connectedElement = element;
|
||||
this.events = new Subject<NgElementStrategyEvent>();
|
||||
this.events.next({name: 'strategy-event', value: 'connect'});
|
||||
|
|
Loading…
Reference in New Issue