UNPKG

@weverson_na/prisma-generator-nestjs-dto

Version:

Advanced Prisma Generator with Smart Merge v2: Creates DTO and Entity classes with AST-based preservation, intelligent import management, and modular architecture for NestJS

27 lines (26 loc) 861 B
import type { DMMF } from '@prisma/generator-helper'; import { NamingStyle, WriteableFileSpecs } from './types'; export interface RunParam { output: string; dmmf: DMMF.Document; exportRelationModifierClasses: boolean; outputToNestJsResourceStructure: boolean; connectDtoPrefix: string; createDtoPrefix: string; updateDtoPrefix: string; dtoSuffix: string; entityPrefix: string; entitySuffix: string; fileNamingStyle: NamingStyle; addExposePropertyDecorator: boolean; } export declare class NestJsDtoGenerator { private readonly params; private readonly templateHelpers; constructor(params: RunParam); run(): WriteableFileSpecs[]; private getFilteredModels; private generateFilesForModel; private buildOutputPaths; } export declare const run: (params: RunParam) => WriteableFileSpecs[];