Skip to content

Commit

Permalink
fix: Upload types (#16360)
Browse files Browse the repository at this point in the history
* fix: Upload types

* fix: ci

* fix: ci

* fix: ci

* fix: ci
  • Loading branch information
ycjcl868 authored and zombieJ committed Apr 28, 2019
1 parent 5469bba commit 59856a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/upload/index.tsx
@@ -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;
Expand Down
5 changes: 3 additions & 2 deletions components/upload/interface.tsx
Expand Up @@ -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 };
}
Expand Down

0 comments on commit 59856a0

Please sign in to comment.