leds-spark-lib
Version:
Biblioteca de geração de código
33 lines • 1.15 kB
TypeScript
/**
* Module Controllers Generator
*
* This module generates controller files that handle business logic,
* error handling, and user interface interactions for each entity.
* Controllers act as an intermediary layer between the API and views.
*
* Features:
* - Error handling and user feedback
* - API integration wrapping
* - UI store integration
* - Type-safe operations
* - Consistent error messages
*/
import SEON from "seon-lib-implementation";
/**
* Generates controller file for a specific class
*
* Creates a TypeScript file containing all controller functions
* that wrap API calls with error handling and UI feedback.
*
* @param project_abstraction - Project metadata
* @param cls - Class for which to generate controller
* @param target_folder - Directory where controller file will be saved
*
* Generated Features:
* - CRUD operation wrappers
* - Error handling with Axios
* - UI alerts integration
* - Type-safe data handling
*/
export declare function generate(project_abstraction: SEON.ProjectAbstraction, cls: SEON.ClassAbstraction, target_folder: string): void;
//# sourceMappingURL=generate.d.ts.map