Skip to content

Commit

Permalink
Added missing type declarations that caused TS error (bleenco#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiuka authored and jkuri committed Sep 7, 2016
1 parent 271169b commit d74b8d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/ng2-uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class Ng2Uploader {
withCredentials: boolean = false;
multiple: boolean = false;
maxUploads: number = 3;
data: Object = {};
data: { [index: string]: any } = {};
autoUpload: boolean = true;
multipart: boolean = true;
method: string = 'POST';
Expand Down Expand Up @@ -220,7 +220,7 @@ export class Ng2Uploader {
}
}

createFileUrl(file){
createFileUrl(file: File){
let reader: FileReader = new FileReader();
reader.addEventListener('load', () => {
this._previewEmitter.emit(reader.result);
Expand Down Expand Up @@ -254,7 +254,7 @@ export class Ng2Uploader {
}
}

function humanizeBytes(bytes): string {
function humanizeBytes(bytes: number): string {
if (bytes === 0) {
return '0 Byte';
}
Expand Down

0 comments on commit d74b8d0

Please sign in to comment.