leds-spark-lib
Version:
Biblioteca de geração de código
37 lines • 1.35 kB
TypeScript
/**
* Module Routes Generator
*
* This module generates Vue Router configurations for each entity module,
* creating route definitions for list and create/edit views. Routes are
* generated with proper naming conventions and component mappings.
*
* Features:
* - Entity-specific route configuration
* - List view routing (home)
* - Create/Edit view routing
* - Optional ID parameter for edit mode
* - Type-safe route definitions
*
* Route Pattern:
* - /{entity}/home -> List view
* - /{entity}/criar -> Create view
* - /{entity}/criar/id -> Edit view
*/
import SEON from "seon-lib-implementation";
/**
* Generates route configuration for a specific entity module
*
* Creates a TypeScript file defining Vue Router routes for an entity's
* list and create/edit views. Uses consistent naming conventions and
* supports proper view component imports.
*
* @param project_abstraction - Project metadata
* @param cls - Class for which to generate routes
* @param target_folder - Directory where route config will be saved
*
* Generated Routes:
* - {entity}-home: Route to list view
* - {entity}-criar: Route to create/edit view with optional ID
*/
export declare function generate(project_abstraction: SEON.ProjectAbstraction, cls: SEON.ClassAbstraction, target_folder: string): void;
//# sourceMappingURL=generate.d.ts.map