UNPKG

@n0safe/indirectus

Version:
15 lines 566 B
import { type TemplateFile } from "./template-loader"; import type { Registry } from "./registry"; import type { Schema } from "./schema"; export interface TemplateRenderer { (file: string, context: any): Promise<string>; files: TemplateFile[]; fromString: (string: string, context: any) => Promise<string>; } export interface TemplateContext { registry: Registry; schema: Schema; [key: string]: any; } export declare function createRenderer(template: string, dirs: string[]): Promise<TemplateRenderer>; //# sourceMappingURL=template.d.ts.map