fix(upload): adjust type declaration for the onError of customRequest (#26601)

This commit is contained in:
Pengsha Ying 2020-09-05 17:13:20 +08:00 committed by GitHub
parent b2cd6c164a
commit b4c0978068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ export interface RcFile extends File {
export interface RcCustomRequestOptions {
onProgress: (event: { percent: number }, file: RcFile) => void;
onError: (error: Error) => void;
onError: (error: Error, response?: any, file?: RcFile) => void;
onSuccess: (response: object, file: RcFile) => void;
data: object;
filename: string;