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'; 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;
} }