mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
Merge pull request #262 from bknd-io/fix/typegen-valid-identifiers-and-comments
fix: typegen: adjust field formatting and type name handling
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user