@ts-for-gir/lib
Version:
Typescript .d.ts generator from GIR for gjs
34 lines (30 loc) • 718 B
text/typescript
import type ejs from "ejs";
/**
* Configuration options for template rendering
*/
export interface TemplateRenderOptions {
/** EJS rendering options */
ejsOptions?: Partial<ejs.Options>;
/** Whether to include append templates */
includeAppend?: boolean;
/** Custom template directory override */
templateDir?: string;
}
/**
* Result of template loading operation
*/
export interface TemplateLoadResult {
/** Main template content */
prepend: string;
/** Append template content (if exists) */
append: string;
}
/**
* Template file processing result
*/
export interface TemplateFileResult {
/** The rendered template content */
content: string;
/** The output file path */
outputPath: string;
}