Skip to content

Commit e965780

Browse files
authored
chore:change customRequest onSuccess prop optional (#342)
1 parent bd7bebf commit e965780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interface.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface UploadRequestError extends Error {
5656
export interface UploadRequestOption<T = any> {
5757
onProgress?: (event: UploadProgressEvent) => void;
5858
onError?: (event: UploadRequestError | ProgressEvent, body?: T) => void;
59-
onSuccess?: (body: T, xhr: XMLHttpRequest) => void;
59+
onSuccess?: (body: T, xhr?: XMLHttpRequest) => void;
6060
data?: object;
6161
filename?: string;
6262
file: Exclude<BeforeUploadFileType, File | boolean> | RcFile;

0 commit comments

Comments
 (0)