UNPKG

leds-spark-lib

Version:

Biblioteca de geração de código

44 lines 1.48 kB
/** * Code Generator Entry Module * * This module serves as the main entry point for code generation, * translating abstract models into concrete project implementations. * It handles the conversion of domain models to SEON abstractions * and initiates the project generation process. * * Features: * - Model to SEON translation * - Project structure generation * - Package organization * - Entity and attribute mapping */ import SEON from "seon-lib-implementation"; import { Model } from "./backend/models/model.js"; /** * Main generation function * * Initiates the code generation process by translating the input model * and delegating the actual generation to ProjectGenerator. * * @param model - Source model containing project structure and entities * @param target_folder - Destination directory for generated code */ export declare function generate(model: Model, target_folder: string): void; /** * Model to SEON translator * * Converts the domain model into a SEON project abstraction, * organizing entities into packages and mapping attributes * to TypeScript types. * * Process: * 1. Extract project metadata * 2. Process modules and entities * 3. Map attributes to TypeScript * 4. Create package hierarchy * * @param model - Source model to translate * @returns {SEON.ProjectAbstraction} SEON project representation */ export declare function translate(model: Model): SEON.ProjectAbstraction; //# sourceMappingURL=generate.d.ts.map