fix(core): update
This commit is contained in:
parent
1e38d6564d
commit
7fcbd39166
@ -1,19 +1,20 @@
|
|||||||
import * as plugins from './smartmail.plugins';
|
import * as plugins from './smartmail.plugins';
|
||||||
|
|
||||||
export interface ISmartmailOptions {
|
export interface ISmartmailOptions<T> {
|
||||||
from: string;
|
from: string;
|
||||||
subject: string;
|
subject: string;
|
||||||
body: string;
|
body: string;
|
||||||
|
creationObjectRef?: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* a standard representation for mails
|
* a standard representation for mails
|
||||||
*/
|
*/
|
||||||
export class Smartmail {
|
export class Smartmail<T> {
|
||||||
public options: ISmartmailOptions;
|
public options: ISmartmailOptions<T>;
|
||||||
public attachments: plugins.smartfile.Smartfile[] = [];
|
public attachments: plugins.smartfile.Smartfile[] = [];
|
||||||
|
|
||||||
constructor(optionsArg: ISmartmailOptions) {
|
constructor(optionsArg: ISmartmailOptions<T>) {
|
||||||
this.options = optionsArg;
|
this.options = optionsArg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user