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

17 lines (16 loc) 776 B
import type { ParsedField } from '../types'; export declare class TemplateUtilities { private decoratorStrategy; private prismaTypeConverter; constructor(decoratorConfigPath?: string); echo(input: string): string; when(condition: unknown, thenTpl: string, elseTpl?: string): string; unless(condition: unknown, thenTpl: string, elseTpl?: string): string; each<T>(arr: T[], fn: (item: T) => string, joinWith?: string): string; hasApiPropertyDoc(field: ParsedField): boolean; hasSomeApiPropertyDoc(fields: ParsedField[]): boolean; buildEntityDecorator(field: ParsedField): string; buildDtoDecorator(field: ParsedField): string; buildEnumDecorator(field: ParsedField): string; buildFieldDecorator(field: ParsedField): string; }