@mediarithmics/plugins-nodejs-sdk
Version:
This is the mediarithmics nodejs to help plugin developers bootstrapping their plugin without having to deal with most of the plugin boilerplate
17 lines (16 loc) • 875 B
TypeScript
import { ExploreableInternalsTemplatingEngine, ProfileDataTemplater } from '../../common/TemplatingInterface';
import { EmailRendererBaseInstanceContext, EmailRendererPlugin } from '../base/EmailRendererBasePlugin';
export interface EmailRendererTemplateInstanceContext extends EmailRendererBaseInstanceContext {
template: unknown;
render_template?: (...args: unknown[]) => string;
}
export declare abstract class EmailRendererTemplatePlugin extends EmailRendererPlugin<EmailRendererTemplateInstanceContext> {
/**
* The engineBuilder that can be used to compile the template
* during the InstanceContext building
*
* Have to be overriden (see examples)
*/
protected abstract engineBuilder: ExploreableInternalsTemplatingEngine<unknown, unknown, unknown, unknown> & ProfileDataTemplater;
constructor(enableThrottling?: boolean);
}