mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
21 lines
791 B
TypeScript
21 lines
791 B
TypeScript
// Type definitions for angular-file-saver 1.2.0
|
|
// 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;
|
|
}
|
|
} |