We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd7bebf commit e965780Copy full SHA for e965780
src/interface.tsx
@@ -56,7 +56,7 @@ export interface UploadRequestError extends Error {
56
export interface UploadRequestOption<T = any> {
57
onProgress?: (event: UploadProgressEvent) => void;
58
onError?: (event: UploadRequestError | ProgressEvent, body?: T) => void;
59
- onSuccess?: (body: T, xhr: XMLHttpRequest) => void;
+ onSuccess?: (body: T, xhr?: XMLHttpRequest) => void;
60
data?: object;
61
filename?: string;
62
file: Exclude<BeforeUploadFileType, File | boolean> | RcFile;
0 commit comments