mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
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:
@@ -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 }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user