From aeee07d82a83dde7321303c9ad131c59ee8c4484 Mon Sep 17 00:00:00 2001 From: Ehsan Rezaei Date: Thu, 29 Aug 2024 17:26:26 +0200 Subject: [PATCH] AAE-25392 Convert route guards to functional - part three (#10117) --- .../shell/src/lib/services/shell-app.service.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/core/shell/src/lib/services/shell-app.service.ts b/lib/core/shell/src/lib/services/shell-app.service.ts index a02d6a5c75..58e64b4a31 100644 --- a/lib/core/shell/src/lib/services/shell-app.service.ts +++ b/lib/core/shell/src/lib/services/shell-app.service.ts @@ -16,23 +16,23 @@ */ import { InjectionToken } from '@angular/core'; -import { CanActivate, CanActivateChild } from '@angular/router'; +import { CanActivateFn, CanActivateChildFn } from '@angular/router'; import { Observable } from 'rxjs'; export interface ShellPreferencesService { - set(preferenceKey: string, value: any): void; - get(preferenceKey: string, defaultValue: string): string; + set(preferenceKey: string, value: any): void; + get(preferenceKey: string, defaultValue: string): string; } export interface ShellAppService { - pageHeading$: Observable; - hideSidenavConditions: string[]; - minimizeSidenavConditions: string[]; - preferencesService: ShellPreferencesService; + pageHeading$: Observable; + hideSidenavConditions: string[]; + minimizeSidenavConditions: string[]; + preferencesService: ShellPreferencesService; } export const SHELL_APP_SERVICE = new InjectionToken('SHELL_APP_SERVICE'); -export const SHELL_AUTH_TOKEN = new InjectionToken('SHELL_AUTH_TOKEN'); +export const SHELL_AUTH_TOKEN = new InjectionToken('SHELL_AUTH_TOKEN'); export const SHELL_NAVBAR_MIN_WIDTH = new InjectionToken('SHELL_NAVBAR_MIN_WIDTH'); export const SHELL_NAVBAR_MAX_WIDTH = new InjectionToken('SHELL_NAVBAR_MAX_WIDTH');