mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #15194 from micahriggan/patch-2
angular-file-saver extending angular module
This commit is contained in:
Vendored
+4
-5
@@ -3,13 +3,12 @@
|
||||
// Definitions by: Donald Nairn <https://github.com/deenairn/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
declare namespace angular {
|
||||
import * as angular from 'angular';
|
||||
declare module 'angular' {
|
||||
/**
|
||||
* A core Angular factory proving FileSaver functionality.
|
||||
*/
|
||||
interface FileSaver {
|
||||
export interface FileSaver {
|
||||
/**
|
||||
* Immediately starts saving a file
|
||||
* @param data: a Blob instance;
|
||||
@@ -18,4 +17,4 @@ declare namespace angular {
|
||||
*/
|
||||
saveAs(blob: Blob, fileName: string, disableBOM?: boolean): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user