From acaae5c85045e944e48f0bd030b1a14ec0975d79 Mon Sep 17 00:00:00 2001 From: Christophe Hurpeau Date: Tue, 21 May 2019 16:00:25 +0200 Subject: [PATCH] Upload prop onRemove: fix action https://github.com/react-component/upload/tree/d0cf0eecee3b31888791f8c57acddb575bd259d4#api --- components/upload/interface.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/interface.tsx b/components/upload/interface.tsx index d744e1b5ae..c220f76223 100755 --- a/components/upload/interface.tsx +++ b/components/upload/interface.tsx @@ -58,7 +58,7 @@ export interface UploadProps { name?: string; defaultFileList?: Array; fileList?: Array; - action?: string | ((file: UploadFile) => PromiseLike); + action?: string | ((file: UploadFile) => string) | ((file: UploadFile) => PromiseLike); directory?: boolean; data?: Object | ((file: UploadFile) => any); headers?: HttpRequestHeader;