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

14 lines (13 loc) 847 B
import type { ParsedField } from '../types'; import type { TypeProvider } from './interfaces'; export declare class PropertyRenderer { private readonly typeProvider; private templateUtilities; constructor(typeProvider: TypeProvider, decoratorConfigPath?: string); addDecorator(field: ParsedField, forEntity?: boolean): string; fieldToDtoProp(field: ParsedField, useInputTypes?: boolean, forceOptional?: boolean, addExposePropertyDecorator?: boolean): string; fieldToEntityProp(field: ParsedField, entityPrefix?: string, entitySuffix?: string): string; fieldsToDtoProps(fields: ParsedField[], useInputTypes?: boolean, forceOptional?: boolean, addExposePropertyDecorator?: boolean): string; fieldsToEntityProps(fields: ParsedField[], entityPrefix?: string, entitySuffix?: string): string; private getFieldType; }