Skip to content

Commit

Permalink
chore: reduce complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
maxholman committed Jul 20, 2024
1 parent 7114e46 commit 87d5203
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions lib/process-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,19 +614,17 @@ export async function processOpenApiDocument(
const fetcherName = 'createIsomorphicNativeFetcher';
const configType = 'RestServiceClientConfig';

mainFile.addImportDeclarations([
{
moduleSpecifier: '@block65/rest-client',
namedImports: [
serviceClientClassName,
fetcherName,
{
name: configType,
isTypeOnly: true,
},
],
},
]);
mainFile.addImportDeclaration({
moduleSpecifier: '@block65/rest-client',
namedImports: [
serviceClientClassName,
fetcherName,
{
name: configType,
isTypeOnly: true,
},
],
});

mainFile.addImportDeclaration({
moduleSpecifier: typesModuleSpecifier,
Expand Down

0 comments on commit 87d5203

Please sign in to comment.