Skip to content

Commit 87d5203

Browse files
committed
chore: reduce complexity
1 parent 7114e46 commit 87d5203

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

lib/process-document.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -614,19 +614,17 @@ export async function processOpenApiDocument(
614614
const fetcherName = 'createIsomorphicNativeFetcher';
615615
const configType = 'RestServiceClientConfig';
616616

617-
mainFile.addImportDeclarations([
618-
{
619-
moduleSpecifier: '@block65/rest-client',
620-
namedImports: [
621-
serviceClientClassName,
622-
fetcherName,
623-
{
624-
name: configType,
625-
isTypeOnly: true,
626-
},
627-
],
628-
},
629-
]);
617+
mainFile.addImportDeclaration({
618+
moduleSpecifier: '@block65/rest-client',
619+
namedImports: [
620+
serviceClientClassName,
621+
fetcherName,
622+
{
623+
name: configType,
624+
isTypeOnly: true,
625+
},
626+
],
627+
});
630628

631629
mainFile.addImportDeclaration({
632630
moduleSpecifier: typesModuleSpecifier,

0 commit comments

Comments
 (0)