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.
This commit is contained in:
dswbx
2025-09-18 09:55:33 +02:00
parent ac32eb128e
commit 3672cc7f2c

View File

@@ -50,7 +50,7 @@ export class EntityTypescript {
indentWidth: 2, indentWidth: 2,
indentChar: " ", indentChar: " ",
entityCommentMultiline: true, entityCommentMultiline: true,
fieldCommentMultiline: false, fieldCommentMultiline: true,
}; };
} }
@@ -82,7 +82,7 @@ export class EntityTypescript {
} }
typeName(name: string) { typeName(name: string) {
return autoFormatString(name); return autoFormatString(name).replace(/ /g, "");
} }
fieldTypesToString(type: TEntityTSType, opts?: { ignore_fields?: string[]; indent?: number }) { fieldTypesToString(type: TEntityTSType, opts?: { ignore_fields?: string[]; indent?: number }) {