Skip to content

Commit e172f49

Browse files
committed
final version
1 parent 86937c3 commit e172f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-typescript/src/transform/components-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function transformComponentsObjectToTypes(components: ComponentsO
1919
ctx: { ...ctx, indentLv: indentLv },
2020
});
2121

22-
output.push(indent(`export type ${camelCase(key, { pascalCase: true })} = ${schemaType};\n`, indentLv));
22+
output.push(indent(`export type ${camelCase(name, { pascalCase: true })} = ${schemaType};\n`, indentLv));
2323
}
2424
} else {
2525
output.push(indent("schemas: never;", indentLv));

0 commit comments

Comments
 (0)