UNPKG

chowa

Version:

UI component library based on React

29 lines (28 loc) 845 B
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { ProgressProps } from '../progress'; export interface StorageFile { name: string; [key: string]: any; } export interface UploadFile { name: string; params: { [key: string]: any; }; uuid: string; progress: number; status: ProgressProps['status']; xhr?: XMLHttpRequest; file?: File; } export declare function getFileUuid(): string; export declare function completeFileStorage(files: StorageFile[]): UploadFile[]; export declare function transformToStorageFile(uploadFile: UploadFile): StorageFile; export declare function computedFileExt(file: File): string;