@thisisagile/easy
Version:
Straightforward library for building domain-driven microservice architectures
20 lines (19 loc) • 605 B
TypeScript
import { Text } from './Text';
export type TemplateOptions = {
typeof?: Text;
property?: Text;
actual?: Text;
subject?: Text;
};
export declare class Template implements Text {
private readonly template;
private readonly subject;
private readonly options;
private knownPrefixes;
constructor(template: string, subject?: unknown, options?: TemplateOptions);
toString: () => string;
private readonly props;
private readonly object;
private readonly option;
}
export declare function template(tmpl: Text, subject: unknown, options?: TemplateOptions): Text;