@@ -14,16 +14,16 @@ export interface UploadProps
1414 action ?: Action ;
1515 method ?: UploadRequestMethod ;
1616 directory ?: boolean ;
17- data ?: object | ( ( file : RcFile | string | Blob ) => object ) ;
17+ data ?: Record < string , unknown > | ( ( file : RcFile | string | Blob ) => Record < string , unknown > ) ;
1818 headers ?: UploadRequestHeader ;
1919 accept ?: string ;
2020 multiple ?: boolean ;
2121 onBatchStart ?: (
2222 fileList : { file : RcFile ; parsedFile : Exclude < BeforeUploadFileType , boolean > } [ ] ,
2323 ) => void ;
2424 onStart ?: ( file : RcFile ) => void ;
25- onError ?: ( error : Error , ret : object , file : RcFile ) => void ;
26- onSuccess ?: ( response : object , file : RcFile , xhr : object ) => void ;
25+ onError ?: ( error : Error , ret : Record < string , unknown > , file : RcFile ) => void ;
26+ onSuccess ?: ( response : Record < string , unknown > , file : RcFile , xhr : XMLHttpRequest ) => void ;
2727 onProgress ?: ( event : UploadProgressEvent , file : RcFile ) => void ;
2828 beforeUpload ?: (
2929 file : RcFile ,
@@ -57,7 +57,7 @@ export interface UploadRequestOption<T = any> {
5757 onProgress ?: ( event : UploadProgressEvent ) => void ;
5858 onError ?: ( event : UploadRequestError | ProgressEvent , body ?: T ) => void ;
5959 onSuccess ?: ( body : T , xhr ?: XMLHttpRequest ) => void ;
60- data ?: object ;
60+ data ?: Record < string , unknown > ;
6161 filename ?: string ;
6262 file : Exclude < BeforeUploadFileType , File | boolean > | RcFile ;
6363 withCredentials ?: boolean ;
0 commit comments