file-utils-plus
Version:
36 lines (35 loc) • 711 B
TypeScript
export interface ImageSize {
height: number;
width: number;
}
export interface AliOptions {
accessKeyId: string;
accessKeySecret: string;
securityToken: string;
bucket: string;
region: string;
}
export interface UploadInfo {
height?: number;
width?: number;
md5: string;
name: string;
url: string;
rate?: number;
sampleCount?: number;
ext: string;
duration: number;
}
export interface UploadOss {
file: File;
path: string;
baseUrl: string;
fileName?: string;
argument?: any;
}
export interface AliUploadOss extends UploadOss {
options: AliOptions;
}
export interface QiNiuUploadOss extends UploadOss {
token: string;
}