@spartacus/storefront
Version:
Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.
14 lines (13 loc) • 546 B
TypeScript
import * as i0 from "@angular/core";
export declare class FileDownloadService {
/**
* Triggers the browser downloading of the file from the given URL.
*
* @param {string} url URL to file.
* @param {string} [fileName] The optional parameter for defining filename
* (including the extension) when saving the file.
*/
download(url: string, fileName?: string): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloadService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<FileDownloadService>;
}