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

remove any; add type for files

parent 82d31ef9
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ export class FileUploadComponent {
readonly myId: string = uniqueId();
onFileChanged($event: Event): void {
const files = (<HTMLInputElement>$event.target).files;
const files: FileList = (<HTMLInputElement>$event.target).files;
this.fileChanged.emit(files[0]);
}
}
\ No newline at end of file
......@@ -15,7 +15,7 @@ import { UserProfileRepository } from './user-profile.repository';
@Injectable({ providedIn: 'root' })
export class UserProfileService {
private userProfiles = <any>{};
private userProfiles = {};
private userProfileSearchList: BehaviorSubject<StateResource<UserProfileListResource>> = new BehaviorSubject(createEmptyStateResource<UserProfileListResource>());
private userProfileSearchVisibility: BehaviorSubject<boolean> = new BehaviorSubject(false);
......@@ -34,10 +34,10 @@ export class UserProfileService {
onNavigation(params: Params): void {
if (NavigationService.isVorgangListPage(params)) {
this.userProfiles = <any>{};
this.userProfiles = {};
this.hideUserProfileSearch();
} 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