mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
789 B
TypeScript
21 lines
789 B
TypeScript
// Type definitions for angular-file-saver 1.1
|
|
// Project: https://github.com/alferov/angular-file-saver
|
|
// Definitions by: Donald Nairn <https://github.com/deenairn/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="angular" />
|
|
|
|
declare namespace angular {
|
|
/**
|
|
* A core Angular factory proving FileSaver functionality.
|
|
*/
|
|
interface FileSaver {
|
|
/**
|
|
* Immediately starts saving a file
|
|
* @param data: a Blob instance;
|
|
* @param filename: a String custom filename (an extension is optional);
|
|
* @param disableAutoBOM : (optional) Boolean Disable automatically provided Unicode text encoding hints;
|
|
*/
|
|
saveAs(blob: Blob, fileName: string, disableBOM?: boolean): void;
|
|
}
|
|
} |