Added type information for methods in FileUploader

This commit is contained in:
marvinscharle
2016-05-25 00:10:34 +02:00
parent a240434d3e
commit b74fc92f2c
2 changed files with 56 additions and 49 deletions
+4 -2
View File
@@ -18,6 +18,8 @@ export class FileItem {
public isError:boolean = false;
public progress:number = 0;
public index:number = void 0;
public _xhr:XMLHttpRequest;
public _form:any;
private uploader:FileUploader;
private some:any;
@@ -36,8 +38,8 @@ export class FileItem {
try {
this.uploader.uploadItem(this);
} catch (e) {
this.uploader._onCompleteItem(this, '', 0, []);
this.uploader._onErrorItem(this, '', 0, []);
this.uploader._onCompleteItem(this, '', 0, {});
this.uploader._onErrorItem(this, '', 0, {});
}
}