mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 11:03:01 +08:00
refactor(emailcomposer): create new file for the Email type
addresses #168
This commit is contained in:
parent
2a568d2398
commit
21ffe99226
@ -1,21 +1,7 @@
|
|||||||
import {Plugin, Cordova} from './plugin';
|
import {Plugin, Cordova} from './plugin';
|
||||||
|
import {Email} from './types/email.type.ts';
|
||||||
declare var cordova;
|
declare var cordova;
|
||||||
|
|
||||||
/**
|
|
||||||
* Email object for Opening Email Composer
|
|
||||||
*/
|
|
||||||
export interface Email {
|
|
||||||
app?: string;
|
|
||||||
to: string | Array<string>;
|
|
||||||
cc: string | Array<string>;
|
|
||||||
bcc: string | Array<string>;
|
|
||||||
attachments: Array<any>;
|
|
||||||
subject: string;
|
|
||||||
body: string;
|
|
||||||
isHtml: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Email Composer
|
* @name Email Composer
|
||||||
* @description
|
* @description
|
||||||
|
13
src/plugins/types/email.type.ts
Normal file
13
src/plugins/types/email.type.ts
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/**
|
||||||
|
* Email object for Opening Email Composer
|
||||||
|
*/
|
||||||
|
export interface Email {
|
||||||
|
app?: string;
|
||||||
|
to: string | Array<string>;
|
||||||
|
cc: string | Array<string>;
|
||||||
|
bcc: string | Array<string>;
|
||||||
|
attachments: Array<any>;
|
||||||
|
subject: string;
|
||||||
|
body: string;
|
||||||
|
isHtml: boolean;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user