mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
fix(upload): adjust type declaration for the onError of customRequest (#26601)
This commit is contained in:
parent
b2cd6c164a
commit
b4c0978068
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user