Upload prop onRemove: allow Promise as return type

This commit is contained in:
Christophe Hurpeau 2019-05-13 17:59:40 +02:00 committed by GitHub
parent 6379999012
commit 2d986ba2c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ export interface UploadProps {
listType?: UploadListType;
className?: string;
onPreview?: (file: UploadFile) => void;
onRemove?: (file: UploadFile) => void | boolean;
onRemove?: (file: UploadFile) => void | boolean | Promise<void | boolean>;
supportServerRender?: boolean;
style?: React.CSSProperties;
disabled?: boolean;