diff --git a/components/upload/interface.tsx b/components/upload/interface.tsx index 9ece53f14d..c45f997533 100755 --- a/components/upload/interface.tsx +++ b/components/upload/interface.tsx @@ -86,7 +86,7 @@ export interface UploadProps { showUploadList?: boolean | ShowUploadListInterface; multiple?: boolean; accept?: string; - beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | {} | Promise; + beforeUpload?: (file: RcFile, FileList: RcFile[]) => boolean | string | Promise; onChange?: (info: UploadChangeParam) => void; listType?: UploadListType; className?: string;