filesbox/miniprogram/FilesBox/node_modules/@vant/weapp/lib/uploader/utils.d.ts
2023-09-21 10:23:31 +08:00

25 lines
667 B
TypeScript

export interface File {
url: string;
size?: number;
name?: string;
type: string;
duration?: number;
time?: number;
isImage?: boolean;
isVideo?: boolean;
}
export declare function isImageFile(item: File): boolean;
export declare function isVideoFile(item: File): boolean;
export declare function chooseFile({ accept, multiple, capture, compressed, maxDuration, sizeType, camera, maxCount, mediaType, extension, }: {
accept: any;
multiple: any;
capture: any;
compressed: any;
maxDuration: any;
sizeType: any;
camera: any;
maxCount: any;
mediaType: any;
extension: any;
}): Promise<File | File[]>;