fix(core): update
This commit is contained in:
parent
1e38d6564d
commit
7fcbd39166
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user