@types/angular-file-saver
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

Installation

npm install --save @types/angular-file-saver

Summary

This package contains type definitions for angular-file-saver (https://github.com/alferov/angular-file-saver).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-file-saver.

index.d.ts

import * as angular from "angular";

declare const moduleName: "ngFileSaver";
export = moduleName;

declare module "angular" {
    /**
     * A core Angular factory proving FileSaver functionality.
     */
    export 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;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by Donald Nairn.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/angular-file-saver

Weekly Downloads

1,595

Version

1.1.7

License

MIT

Unpacked Size

3.95 kB

Total Files

5

Last publish

Collaborators

  • types