From fa5d5e0a9600ef688da42a9298250910ffec2381 Mon Sep 17 00:00:00 2001 From: DiamondYuan Date: Wed, 29 May 2019 13:52:35 +0800 Subject: [PATCH] fix: fix type of RcFile --- components/upload/interface.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/upload/interface.tsx b/components/upload/interface.tsx index b46711ac72..b121f32a53 100755 --- a/components/upload/interface.tsx +++ b/components/upload/interface.tsx @@ -8,7 +8,12 @@ export interface HttpRequestHeader { export interface RcFile extends File { uid: string; - lastModifiedDate: Date; + readonly name: string; + readonly type: string; + readonly lastModified: number; + readonly lastModifiedDate: Date; + readonly size: number; + readonly webkitRelativePath: string; } export interface UploadFile {