UNPKG

@daysnap/horn-jssdk

Version:

原生容器面向 H5 开发者提供的基于容器应用内的网页开发工具包

16 lines (15 loc) 573 B
import { type FailCallbackResult, type PickOptions } from '../../core'; export interface DownloadFileResult { filePath: string; } export interface DownloadFileOptions { url: string; filePath?: string; header?: { [props: string]: any; }; timeout?: number; success?: (result: DownloadFileResult) => void; fail?: (err: FailCallbackResult) => void; } export declare const downloadFile: <T extends DownloadFileOptions = DownloadFileOptions>(options: T) => import("../../core").PromisifySuccessResult<PickOptions<T>, DownloadFileOptions>;