From 3672cc7f2cd13d3173dd9124638ac1b30bbb5eb6 Mon Sep 17 00:00:00 2001 From: dswbx Date: Thu, 18 Sep 2025 09:55:33 +0200 Subject: [PATCH] fix: adjust field formatting and type name handling Enabled multiline comments for fields to align with entity settings. Updated `typeName` to remove spaces for consistent formatting. --- app/src/data/entities/EntityTypescript.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/data/entities/EntityTypescript.ts b/app/src/data/entities/EntityTypescript.ts index b7e2b2c..6278a83 100644 --- a/app/src/data/entities/EntityTypescript.ts +++ b/app/src/data/entities/EntityTypescript.ts @@ -50,7 +50,7 @@ export class EntityTypescript { indentWidth: 2, indentChar: " ", entityCommentMultiline: true, - fieldCommentMultiline: false, + fieldCommentMultiline: true, }; } @@ -82,7 +82,7 @@ export class EntityTypescript { } typeName(name: string) { - return autoFormatString(name); + return autoFormatString(name).replace(/ /g, ""); } fieldTypesToString(type: TEntityTSType, opts?: { ignore_fields?: string[]; indent?: number }) {