From 06094c2b533c08297854e895c1029344481ca22d Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 8 Apr 2018 21:31:06 +0200 Subject: [PATCH] docs(file-opener): typo --- .../plugins/file-opener/index.ts | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/@ionic-native/plugins/file-opener/index.ts b/src/@ionic-native/plugins/file-opener/index.ts index 1250e1c7..9d691fcb 100644 --- a/src/@ionic-native/plugins/file-opener/index.ts +++ b/src/@ionic-native/plugins/file-opener/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name File Opener @@ -16,7 +16,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; * * this.fileOpener.open('path/to/file.pdf', 'application/pdf') * .then(() => console.log('File is opened')) - * .catch(e => console.log('Error openening file', e)); + * .catch(e => console.log('Error opening file', e)); * * ``` */ @@ -29,11 +29,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; }) @Injectable() export class FileOpener extends IonicNativePlugin { - /** * Open an file - * @param filePath {string} File Path - * @param fileMIMEType {string} File MIME Type + * @param {string} filePath File Path + * @param {string} fileMIMEType File MIME Type * @returns {Promise} */ @Cordova({ @@ -41,11 +40,13 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - open(filePath: string, fileMIMEType: string): Promise { return; } + open(filePath: string, fileMIMEType: string): Promise { + return; + } /** * Uninstalls a package - * @param packageId {string} Package ID + * @param {string} packageId Package ID * @returns {Promise} */ @Cordova({ @@ -53,11 +54,13 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - uninstall(packageId: string): Promise { return; } + uninstall(packageId: string): Promise { + return; + } /** * Check if an app is already installed - * @param packageId {string} Package ID + * @param {string} packageId Package ID * @returns {Promise} */ @Cordova({ @@ -65,6 +68,7 @@ export class FileOpener extends IonicNativePlugin { successName: 'success', errorName: 'error' }) - appIsInstalled(packageId: string): Promise { return; } - + appIsInstalled(packageId: string): Promise { + return; + } }