iking-utils-pro
Version:
金合前端工具库
28 lines (27 loc) • 742 B
TypeScript
export interface customDataInterface {
excel: any;
word: any;
txt: any;
zip: any;
image: any;
video: any;
ppt: any;
pdf: any;
audio: any;
unknow: any;
}
export interface iconFieldInter {
type: string;
icon: string;
}
export interface fieldInter {
name?: string;
url?: string;
suffix?: string;
size?: number;
}
type FileType = "excel" | "zip" | "image" | "video" | "audio" | "pdf" | "txt" | "word" | "ppt" | "exe" | "json" | "unknown";
export declare const getFileType: (file: any, mixDefaultField: any) => FileType;
export declare const getFileAttr: (suffix: string) => any;
export declare const getFileTypes: (fileType: string) => string;
export {};