@@ -4,9 +4,9 @@ import { FileUploader, ParsedResponseHeaders, FileUploaderOptions } from './file
44export class FileItem {
55 public file : FileLikeObject ;
66 public _file : File ;
7- public alias : string ;
8- public url : string = '/' ;
9- public method : string ;
7+ public alias ? : string ;
8+ public url ? = '/' ;
9+ public method ? : string ;
1010 public headers : any = [ ] ;
1111 public withCredentials : boolean = true ;
1212 public formData : any = [ ] ;
@@ -17,8 +17,8 @@ export class FileItem {
1717 public isCancel : boolean = false ;
1818 public isError : boolean = false ;
1919 public progress : number = 0 ;
20- public index : number = void 0 ;
21- public _xhr : XMLHttpRequest ;
20+ public index ? : number ;
21+ public _xhr ? : XMLHttpRequest ;
2222 public _form : any ;
2323
2424 protected uploader : FileUploader ;
@@ -111,7 +111,7 @@ export class FileItem {
111111 this . isCancel = false ;
112112 this . isError = false ;
113113 this . progress = 100 ;
114- this . index = void 0 ;
114+ this . index = undefined ;
115115 this . onSuccess ( response , status , headers ) ;
116116 }
117117
@@ -123,7 +123,7 @@ export class FileItem {
123123 this . isCancel = false ;
124124 this . isError = true ;
125125 this . progress = 0 ;
126- this . index = void 0 ;
126+ this . index = undefined ;
127127 this . onError ( response , status , headers ) ;
128128 }
129129
@@ -135,7 +135,7 @@ export class FileItem {
135135 this . isCancel = true ;
136136 this . isError = false ;
137137 this . progress = 0 ;
138- this . index = void 0 ;
138+ this . index = undefined ;
139139 this . onCancel ( response , status , headers ) ;
140140 }
141141
0 commit comments