diginext-utils
Version:
README.md
17 lines • 563 B
TypeScript
interface IFile {
file?: File;
filename?: string;
}
export declare const doGetFile: (url: string, data?: {
filename?: string;
}) => Promise<{
file: File;
filename: string;
} | undefined>;
export declare const doSaveFileDesktop: (url: string, data?: IFile) => Promise<boolean>;
export declare const doSaveFileMobile: (url: string, data?: IFile) => Promise<unknown>;
export declare function downloadByUrl(url: string, data?: {
filename?: string;
}): Promise<unknown>;
export default downloadByUrl;
//# sourceMappingURL=downloadByUrl.d.ts.map