UNPKG

templates-mo

Version:

Templates is a scaffolding framework that makes code generation simple, dynamic, and reusable. Generate files, parts of your app, or whole project structures—without the repetitive copy-pasting

50 lines (49 loc) • 1.37 kB
import { AnswersHash } from "../types/settings"; export declare class TemplateNotFoundError extends Error { name: string; template: string; constructor(templateName: string); } export declare class RequiresTemplateError extends Error { name: string; constructor(); } export declare class PackageAlreadyCompiledError extends Error { name: string; constructor(packageName: string); } export declare class SettingsUnkownFileTypeError extends Error { name: string; settings: string; constructor(settingsPath: string); } export declare class NoPromptsError extends Error { name: string; message: string; } export declare class PromptNoPromptFoundError extends Error { name: string; promptName: string; constructor(name: string); } export declare class PromptInvalidAnswersError extends Error { name: string; answers: AnswersHash; constructor(answers: AnswersHash); } export declare class InitializedAlreadyError extends Error { name: string; path: string; constructor(filePath: string); } export declare class GlobalInitializedAlreadyError extends Error { name: string; path: string; constructor(filePath: any); } export declare class BuildError extends Error { buildPath: string; errors: Error[]; name: string; constructor(buildPath: string, errors: Error[]); }