mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
refactor(plugins): replace types in plugin files
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import {Plugin, Cordova} from './plugin';
|
||||
import {Email} from './types/email.type';
|
||||
declare var cordova;
|
||||
|
||||
declare var cordova: any;
|
||||
/**
|
||||
* @name Email Composer
|
||||
* @description
|
||||
@@ -85,3 +83,13 @@ export class EmailComposer {
|
||||
static open(email: Email, scope?: any): Promise<any> {return; }
|
||||
|
||||
}
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user