diff --git a/src/@ionic-native/plugins/file-chooser/index.ts b/src/@ionic-native/plugins/file-chooser/index.ts index 7b2ab0b36..acba7f1a8 100644 --- a/src/@ionic-native/plugins/file-chooser/index.ts +++ b/src/@ionic-native/plugins/file-chooser/index.ts @@ -1,6 +1,13 @@ import { Injectable } from '@angular/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; +export interface FileChooserOptions { + /** + * comma seperated mime types to filter files. + */ + mime: string; +} + /** * @name File Chooser * @description @@ -20,6 +27,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; * .catch(e => console.log(e)); * * ``` + * @interfaces + * FileChooserOptions */ @Plugin({ pluginName: 'FileChooser', @@ -33,10 +42,11 @@ export class FileChooser extends IonicNativePlugin { /** * Open a file + * @param {FileChooserOptions} [options] Optional parameter, defaults to ''. Filters the file selection list according to mime types * @returns {Promise} */ @Cordova() - open(): Promise { + open(options?: FileChooserOptions): Promise { return; }