fix transformFileHandler ts def

This commit is contained in:
kanweiwei 2019-09-04 22:48:32 +08:00 committed by 偏右
parent 61ad79dde5
commit 7ad1068006

View File

@ -53,7 +53,9 @@ export type UploadType = 'drag' | 'select';
export type UploadListType = 'text' | 'picture' | 'picture-card';
type PreviewFileHandler = (file: File | Blob) => PromiseLike<string>;
type TransformFileHandler = (file: UploadFile) => string | Blob | File | PromiseLike<string | Blob | File>;
type TransformFileHandler = (
file: RcFile,
) => string | Blob | File | PromiseLike<string | Blob | File>;
export interface UploadProps {
type?: UploadType;