smartscaf/dist/smartscaf.classes.smartscaf.d.ts

27 lines
713 B
TypeScript
Raw Normal View History

2017-04-28 22:44:23 +00:00
import { Smartfile } from 'smartfile';
export interface ScafTemplateContructorOptions {
name?: string;
description?: string;
sourceDir?: string;
}
export declare class ScafTemplate {
name: string;
description: string;
templateObject: Smartfile[];
requiredVariables: any[];
constructor();
/**
* read a template from a directory
*/
readTemplateFromDir(dirArg: string): Promise<void>;
writeWithVariables(variablesArg: any): Promise<void>;
/**
* finds all variables in a Template
*/
private _findVariablesInTemplate();
/**
* checks if supplied Variables satisfy the template
*/
private _checkSuppliedVariables(variablesArg);
}