fix(core): update

This commit is contained in:
Philipp Kunz 2020-01-13 15:19:47 +00:00
parent 1e38d6564d
commit 7fcbd39166

View File

@ -1,19 +1,20 @@
import * as plugins from './smartmail.plugins';
export interface ISmartmailOptions {
export interface ISmartmailOptions<T> {
from: string;
subject: string;
body: string;
creationObjectRef?: T;
}
/**
* a standard representation for mails
*/
export class Smartmail {
public options: ISmartmailOptions;
export class Smartmail<T> {
public options: ISmartmailOptions<T>;
public attachments: plugins.smartfile.Smartfile[] = [];
constructor(optionsArg: ISmartmailOptions) {
constructor(optionsArg: ISmartmailOptions<T>) {
this.options = optionsArg;
}