2.0.7 • Published 2 years ago

@types/file-saver v2.0.7

Weekly downloads
370,447
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/file-saver

Summary

This package contains type definitions for FileSaver.js (https://github.com/eligrey/FileSaver.js/).

Details

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

index.d.ts

// Type definitions for FileSaver.js 2.0
// Project: https://github.com/eligrey/FileSaver.js/
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
//                 Daniel Roth <https://github.com/DaIgeb>
//                 HitkoDev <https://github.com/HitkoDev>
//                 JounQin <https://github.com/JounQin>
//                 BendingBender <https://github.com/bendingbender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export = FileSaver;

export as namespace saveAs;

/**
 * FileSaver.js implements the saveAs() FileSaver interface in browsers that do not natively support it.
 * @param data - The actual file data blob or URL.
 * @param filename - The optional name of the file to be downloaded. If omitted, the name used in the file data will be used. If none is provided "download" will be used.
 * @param options - Optional FileSaver.js config
 */
declare function FileSaver(data: Blob | string, filename?: string, options?: FileSaver.FileSaverOptions): void;

/**
 * FileSaver.js implements the saveAs() FileSaver interface in browsers that do not natively support it.
 * @param data - The actual file data blob or URL.
 * @param filename - The optional name of the file to be downloaded. If omitted, the name used in the file data will be used. If none is provided "download" will be used.
 * @param disableAutoBOM - Optional & defaults to `true`. Set to `false` if you want FileSaver.js to automatically provide Unicode text encoding hints
 * @deprecated use `{ autoBom: false }` as the third argument
 */
// tslint:disable-next-line:unified-signatures
declare function FileSaver(data: Blob | string, filename?: string, disableAutoBOM?: boolean): void;

declare namespace FileSaver {
    interface FileSaverOptions {
        /**
         * Automatically provide Unicode text encoding hints
         * @default false
         */
        autoBom: boolean;
    }

    const saveAs: typeof FileSaver;
}

Additional Details

  • Last updated: Tue, 11 Jan 2022 22:31:38 GMT
  • Dependencies: none
  • Global values: saveAs

Credits

These definitions were written by Cyril Schumacher, Daniel Roth, HitkoDev, JounQin, and BendingBender.

@polkadot/app-accountspoc-top-flopripples-core_pinnanwxt-utils@dorabot/visualizationflbusinessflbusiness1eleave-adminmy-kmap@isygis/isy-gis-bimodmsripples-aws-odmsripples-aws-svmsripples-core-szydripples-psc-odmsripples-psc-svmsjson-inspector-helpercmt-navigatorantd-table-saveto-excelthreeddd-editorfeanaro_reactinsite_qc@product360/editorinsite_coretableems-payment-platform@everything-registry/sub-chunk-948@thepowereco/hubimo-clienttanstack-multiple-react-table-to-xlsxtcm.jqgridtcm.jqgrid2tcm-jqgrid3tauvolitable2xlsxsvms-process-fontterriajswegis-geostyler-reactsupportive-supervision-tool-admintest-recordingvue-code-generator-plugin-testvue-components-web@corprio/aspnetcore-site@coscine/api-connection@dabing_bigpawn/s-render@blocklet/pages-kit@blocklet/ai-runtime@bnsights-test/test-controls@bnsights/bbsf-controlscustom-react-consolejitz-sharepoint-utilitiesits.essentialjulienne-trellisappjnra-storybook-libjs2fskipms-master-datajupyterlab_filetreecrcgas-scs-ripples-corebraw-file-downloaderphylotree-visualization-demo@adpro/gkd_inspectlyl_plugin_interfacesubcurrentsprintt-demo-headersprintt-headerspt-sharedsurvaii-session-streamts-xlsx-exporttraining-app-testtraining-componenttmk-methodtwilio-flex-webchat-widgettuvoli@aosypov/xrathus_jlab_filebrowser@aqaurius6666/phylotree-visualization@anov/go-core@asymme1/phylotree-visualization-demo@authereum/utils@alilc/lowcode-plugin-code-generator@class_liangmu/oss-upload@9188/doso@dckj-npm/lowcode-plugin-code-generator@dgmjs/exportzw-lowcode-plugin-code-generatorzz-lowcode-plugin-code-generator@feedmepos/mf-iam@feedmepos/mf-table@dt-cloud/http@eavfw/designer@ha8rt/http.service@h74-sps/utils@gwola_wang/wleaflet@hanani/eleave-admin@hsolpkg/yoda-table@hewenfei/hook@embrace924/export_excel@gedit/runtime@fmsim/board@gkd-kit/inspect@globalbrain/sefirot@infinitebrahmanuniverse/nolb-_types_f
2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

3 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

6 years ago

2.0.0

7 years ago

1.3.1

7 years ago

1.3.0

8 years ago

0.0.1

8 years ago

0.0.0

9 years ago