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