fix: Upload types (#16360)

* fix: Upload types

* fix: ci

* fix: ci

* fix: ci

* fix: ci
This commit is contained in:
信鑫-King 2019-04-28 20:49:58 +08:00 committed by zombieJ
parent 5469bbaa73
commit 59856a093b
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import Upload from './Upload';
import Dragger from './Dragger';
export { UploadProps, UploadListProps, UploadChangeParam } from './interface';
export { UploadProps, UploadListProps, UploadChangeParam, RcFile } from './interface';
export { DraggerProps } from './Dragger';
Upload.Dragger = Dragger;

View File

@ -29,8 +29,9 @@ export interface UploadFile {
type: string;
}
export interface UploadChangeParam {
file: UploadFile;
export interface UploadChangeParam<T extends object = UploadFile> {
// https://github.com/ant-design/ant-design/issues/14420
file: T;
fileList: Array<UploadFile>;
event?: { percent: number };
}