mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
fix(upload): type definition of beforeUpload (#30213)
This commit is contained in:
parent
328e2b6252
commit
a836b582ab
@ -86,7 +86,7 @@ export interface UploadProps<T = any> {
|
|||||||
showUploadList?: boolean | ShowUploadListInterface;
|
showUploadList?: boolean | ShowUploadListInterface;
|
||||||
multiple?: boolean;
|
multiple?: boolean;
|
||||||
accept?: string;
|
accept?: string;
|
||||||
beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | {} | Promise<void | Blob | File>;
|
beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | string | Promise<void | Blob | File>;
|
||||||
onChange?: (info: UploadChangeParam) => void;
|
onChange?: (info: UploadChangeParam) => void;
|
||||||
listType?: UploadListType;
|
listType?: UploadListType;
|
||||||
className?: string;
|
className?: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user