From ad84e758bea8debffac9d4b6ac87c39502e523dd Mon Sep 17 00:00:00 2001 From: Ibby <ibby93@gmail.com> Date: Tue, 6 Dec 2016 09:09:00 -0500 Subject: [PATCH] refractor(email-composer): refractor interfaces to avoid duplicates --- src/plugins/emailcomposer.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/emailcomposer.ts b/src/plugins/emailcomposer.ts index 90b1df67e..aae3d427e 100644 --- a/src/plugins/emailcomposer.ts +++ b/src/plugins/emailcomposer.ts @@ -2,7 +2,7 @@ import { Cordova, Plugin } from './plugin'; declare var cordova: any; -export interface Email { +export interface EmailComposerOptions { app?: string; @@ -62,6 +62,8 @@ export interface Email { * EmailComposer.open(email); * * ``` + * @interfaces + * EmailComposerOptions */ @Plugin({ pluginName: 'EmailComposer', @@ -112,7 +114,7 @@ export class EmailComposer { /** * Displays the email composer pre-filled with data. * - * @param email {Email} Email + * @param options {EmailComposerOptions} Email * @param scope {any?} An optional scope for the promise * @returns {Promise<any>} Resolves promise when the EmailComposer has been opened */ @@ -120,6 +122,6 @@ export class EmailComposer { successIndex: 1, errorIndex: 3 }) - static open(email: Email, scope?: any): Promise<any> { return; } + static open(options: EmailComposerOptions, scope?: any): Promise<any> { return; } }