Skip to content

Commit

Permalink
fix(upload): adjust type declaration for the onError of customRequest (
Browse files Browse the repository at this point in the history
  • Loading branch information
yingpengsha committed Sep 5, 2020
1 parent b2cd6c1 commit b4c0978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/upload/interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b4c0978

Please sign in to comment.