Skip to content

Commit

Permalink
fix: 修改beforeUpload ts定义 (#27946)
Browse files Browse the repository at this point in the history
Co-authored-by: zhoubingling.00 <zhoubingling.00@bytedance.com>
  • Loading branch information
bingling0084 and zhoubingling.00 committed Nov 23, 2020
1 parent ec9111e commit e0c19e4
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 @@ -96,7 +96,7 @@ export interface UploadProps<T = any> {
showUploadList?: boolean | ShowUploadListInterface;
multiple?: boolean;
accept?: string;
beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | PromiseLike<void>;
beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | PromiseLike<void | Blob | File>;
onChange?: (info: UploadChangeParam) => void;
listType?: UploadListType;
className?: string;
Expand Down

0 comments on commit e0c19e4

Please sign in to comment.