Skip to content
Snippets Groups Projects
Commit 936a59aa authored by OZGCloud's avatar OZGCloud
Browse files

remove any; add type for files

parent 82d31ef9
Branches
Tags
No related merge requests found
...@@ -17,7 +17,7 @@ export class FileUploadComponent { ...@@ -17,7 +17,7 @@ export class FileUploadComponent {
readonly myId: string = uniqueId(); readonly myId: string = uniqueId();
onFileChanged($event: Event): void { onFileChanged($event: Event): void {
const files = (<HTMLInputElement>$event.target).files; const files: FileList = (<HTMLInputElement>$event.target).files;
this.fileChanged.emit(files[0]); this.fileChanged.emit(files[0]);
} }
} }
\ No newline at end of file
...@@ -15,7 +15,7 @@ import { UserProfileRepository } from './user-profile.repository'; ...@@ -15,7 +15,7 @@ import { UserProfileRepository } from './user-profile.repository';
@Injectable({ providedIn: 'root' }) @Injectable({ providedIn: 'root' })
export class UserProfileService { export class UserProfileService {
private userProfiles = <any>{}; private userProfiles = {};
private userProfileSearchList: BehaviorSubject<StateResource<UserProfileListResource>> = new BehaviorSubject(createEmptyStateResource<UserProfileListResource>()); private userProfileSearchList: BehaviorSubject<StateResource<UserProfileListResource>> = new BehaviorSubject(createEmptyStateResource<UserProfileListResource>());
private userProfileSearchVisibility: BehaviorSubject<boolean> = new BehaviorSubject(false); private userProfileSearchVisibility: BehaviorSubject<boolean> = new BehaviorSubject(false);
...@@ -34,10 +34,10 @@ export class UserProfileService { ...@@ -34,10 +34,10 @@ export class UserProfileService {
onNavigation(params: Params): void { onNavigation(params: Params): void {
if (NavigationService.isVorgangListPage(params)) { if (NavigationService.isVorgangListPage(params)) {
this.userProfiles = <any>{}; this.userProfiles = {};
this.hideUserProfileSearch(); this.hideUserProfileSearch();
} else if (NavigationService.isVorgangDetailPage(params, VorgangService.VORGANG_WITH_EINGANG_URL)) { } else if (NavigationService.isVorgangDetailPage(params, VorgangService.VORGANG_WITH_EINGANG_URL)) {
this.userProfiles = <any>{}; this.userProfiles = {};
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment