Skip to content

Commit

Permalink
Merge pull request #97 from mledl/fix-camel-case-typedefs
Browse files Browse the repository at this point in the history
fix: generate typescript types using camel case
  • Loading branch information
Edo-San authored Jun 12, 2024
2 parents 1d96b5a + b2e4d49 commit 65b31e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/typescript/generateTypesFromJSONSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export class GenerateTypesFromJSONSchemas {
*/
#getComponentType(componentName: string) {
const componentType = startCase(
camelCase(`${this.#options.typeNamesPrefix ?? ""}${componentName}${this.#options.typeNamesSuffix}`)
camelCase(`${this.#options.typeNamesPrefix ?? ""}_${componentName}_${this.#options.typeNamesSuffix}`)
).replace(/ /g, "");

/**
Expand Down

0 comments on commit 65b31e4

Please sign in to comment.