Skip to content

Commit

Permalink
Add a backslash before the new types
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterwigboldus-visma committed Sep 11, 2024
1 parent 218492b commit 9bacbd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typegen/typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function generateTypesForDocument(definition: Document, opts: Typeg

const api = new OpenAPIClientAxios({ definition: normalizedSchema as Document });
await api.init();

const rootLevelAliases = generateRootLevelAliases(exportedTypes);

const clientOperationTypes = generateClientOperationMethodTypes(api, exportedTypes, opts);
Expand Down Expand Up @@ -253,7 +253,7 @@ const generateRootLevelAliases = (exportedTypes: ExportedType[]) => {
}
}

return aliases.join('\n');
return '\n'+aliases.join('\n');
};

const normalizeSchema = (schema: Document): Document => {
Expand Down

0 comments on commit 9bacbd3

Please sign in to comment.