Skip to content

Commit 107e082

Browse files
authored
Let ProgressEvent optional (#360)
* Let ProgressEvent only require percent Percent is the only needed attribute. * make percent optional
1 parent 21027b7 commit 107e082

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export interface UploadProps
3939
onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;
4040
}
4141

42-
export interface UploadProgressEvent extends ProgressEvent {
43-
percent: number;
42+
export interface UploadProgressEvent extends Partial<ProgressEvent> {
43+
percent?: number;
4444
}
4545

4646
export type UploadRequestMethod = 'POST' | 'PUT' | 'PATCH' | 'post' | 'put' | 'patch';

0 commit comments

Comments
 (0)