fix: customRequest file interface (#25598)

This commit is contained in:
Albert Zhang 2020-07-13 14:11:55 +08:00 committed by GitHub
parent fb869021aa
commit cf9c08aca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,12 +14,12 @@ export interface RcFile extends File {
}
export interface RcCustomRequestOptions {
onProgress: (event: { percent: number }, file: File) => void;
onProgress: (event: { percent: number }, file: RcFile) => void;
onError: (error: Error) => void;
onSuccess: (response: object, file: File) => void;
onSuccess: (response: object, file: RcFile) => void;
data: object;
filename: string;
file: File;
file: RcFile;
withCredentials: boolean;
action: string;
headers: object;