UNPKG

nestjs-reverse-engineering

Version:

A powerful TypeScript/NestJS library for database reverse engineering, entity generation, and CRUD operations

38 lines 983 B
export interface EntityInfo { className: string; fileName: string; filePath: string; relativePath: string; } export interface IndexGenerationOptions { entitiesPath: string; outputPath?: string; includeNamedExports: boolean; includeEntitiesArray: boolean; filePattern: string; } export declare class EntityIndexGenerator { private readonly options; constructor(options?: Partial<IndexGenerationOptions>); /** * Scan directory for entity files */ scanEntityFiles(): Promise<EntityInfo[]>; /** * Extract entity class information from file */ private extractEntityInfo; /** * Generate index.ts content */ generateIndexContent(entities: EntityInfo[]): string; /** * Generate index.ts file */ generateIndex(): Promise<void>; /** * Watch for changes and regenerate index */ watchAndRegenerate(): void; } //# sourceMappingURL=entity-index-generator.d.ts.map