Skip to content

Commit

Permalink
Add missing type to avoid error when no implicit any option set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
antitoine authored and jkuri committed Jul 29, 2016
1 parent f09f435 commit 7412fba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/directives/ng-file-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export class NgFileDrop {
this.uploader.setOptions(this.options);
});

this.uploader._emitter.subscribe((data) => {
this.uploader._emitter.subscribe((data: any) => {
this.onUpload.emit(data);
});

this.initEvents();
}

initEvents(): void {
this.el.nativeElement.addEventListener('drop', (e: DragEvent) => {
this.el.nativeElement.addEventListener('drop', (e: any) => {
e.stopPropagation();
e.preventDefault();

Expand Down
2 changes: 1 addition & 1 deletion src/directives/ng-file-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class NgFileSelect {
this.uploader.setOptions(this.options);
});

this.uploader._emitter.subscribe((data) => {
this.uploader._emitter.subscribe((data: any) => {
this.onUpload.emit(data);
});
}
Expand Down

0 comments on commit 7412fba

Please sign in to comment.