@n0safe/indirectus
Version:
Directus Tools CLI.
15 lines • 566 B
TypeScript
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