Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit b2e4d49

Browse files
author
mledl
committed
fix: adds underscores to make loadash camelCase work properly when generating typescript type names
1 parent 71d5c4a commit b2e4d49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/typescript/generateTypesFromJSONSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export class GenerateTypesFromJSONSchemas {
418418
*/
419419
#getComponentType(componentName: string) {
420420
const componentType = startCase(
421-
camelCase(`${this.#options.typeNamesPrefix ?? ""}${componentName}${this.#options.typeNamesSuffix}`)
421+
camelCase(`${this.#options.typeNamesPrefix ?? ""}_${componentName}_${this.#options.typeNamesSuffix}`)
422422
).replace(/ /g, "");
423423

424424
/**

0 commit comments

Comments
 (0)