npm install --save @types/cordova-plugin-save-dialog
This package contains type definitions for cordova-plugin-save-dialog (https://github.com/Amphiluke/cordova-plugin-save-dialog).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cordova-plugin-save-dialog.
declare namespace CordovaPluginsSaveDialog {
interface CordovaPluginsSaveDialog {
/**
* Opens a save dialog and store raw contents in a file.
*
* @param blob The file contents.
* @param name A file name to display on default. If omitted, `unknown` is used.
*
* @returns A promise whose fulfillment value is a URI of the saved file in the user-selected location.
*/
saveFile(blob: Blob, name?: string): Promise<string>;
}
}
interface CordovaPlugins {
saveDialog: CordovaPluginsSaveDialog.CordovaPluginsSaveDialog;
}
- Last updated: Tue, 27 Feb 2024 16:07:09 GMT
- Dependencies: none
These definitions were written by Edoardo Morandi.