Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class NotificationService {
// Add To array
this.notifications.push({
notificationComponent: notificationComponentRef,
notificationConfig: notificationConfig
notificationConfig
});

const defaultBehaviourOnClose = (): void => {
Expand Down Expand Up @@ -129,7 +129,7 @@ export class NotificationService {
}

/** @hidden attempts to focus previously selected element */
private _restoreFocus() {
private _restoreFocus(): void {
if (typeof this._elementFocusedBeforeNotificationWasOpened?.focus === 'function') {
this._elementFocusedBeforeNotificationWasOpened.focus();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export abstract class NotificationGroupBaseDirective implements AfterViewInit, O
constructor(private renderer: Renderer2) {}

/** @hidden */
ngAfterViewInit() {
ngAfterViewInit(): void {
// TODO: update startWith args to be "undefined" after migration to rxjs 7.
// Now it throws irrelevant warning about deprecation
const headersChanges$ = this.notificationHeader.changes.pipe(startWith(0));
Expand Down Expand Up @@ -58,7 +58,7 @@ export abstract class NotificationGroupBaseDirective implements AfterViewInit, O
}

/** @hidden */
ngOnDestroy() {
ngOnDestroy(): void {
this.onDestroy$.next();
}
}