From 21ffe99226c06f7dfef177665efa4ca884555392 Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Fri, 20 May 2016 14:08:25 -0400 Subject: [PATCH] refactor(emailcomposer): create new file for the Email type addresses #168 --- src/plugins/emailcomposer.ts | 16 +--------------- src/plugins/types/email.type.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 src/plugins/types/email.type.ts diff --git a/src/plugins/emailcomposer.ts b/src/plugins/emailcomposer.ts index d2cb4f87e..22219efde 100644 --- a/src/plugins/emailcomposer.ts +++ b/src/plugins/emailcomposer.ts @@ -1,21 +1,7 @@ import {Plugin, Cordova} from './plugin'; - +import {Email} from './types/email.type.ts'; declare var cordova; -/** - * Email object for Opening Email Composer - */ -export interface Email { - app?: string; - to: string | Array; - cc: string | Array; - bcc: string | Array; - attachments: Array; - subject: string; - body: string; - isHtml: boolean; -} - /** * @name Email Composer * @description diff --git a/src/plugins/types/email.type.ts b/src/plugins/types/email.type.ts new file mode 100644 index 000000000..bea6a0ad5 --- /dev/null +++ b/src/plugins/types/email.type.ts @@ -0,0 +1,13 @@ +/** + * Email object for Opening Email Composer + */ +export interface Email { + app?: string; + to: string | Array; + cc: string | Array; + bcc: string | Array; + attachments: Array; + subject: string; + body: string; + isHtml: boolean; +} \ No newline at end of file