Upload prop onRemove: fix action

d0cf0eecee (api)
This commit is contained in:
Christophe Hurpeau 2019-05-21 16:00:25 +02:00 committed by GitHub
parent 8a91c94c4c
commit acaae5c850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ export interface UploadProps {
name?: string;
defaultFileList?: Array<UploadFile>;
fileList?: Array<UploadFile>;
action?: string | ((file: UploadFile) => PromiseLike<any>);
action?: string | ((file: UploadFile) => string) | ((file: UploadFile) => PromiseLike<string>);
directory?: boolean;
data?: Object | ((file: UploadFile) => any);
headers?: HttpRequestHeader;