Skip to content

Commit 36635f0

Browse files
committed
fix: sort imports
1 parent ad4cdc2 commit 36635f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/openapi-code-generator/src/typescript/server/typescript-nextjs/typescript-nextjs-app-router-builder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ export class TypescriptNextjsAppRouterBuilder implements ICompilable {
132132
.forEach((it) => it.remove())
133133

134134
this.sourceFile.addImportDeclaration({
135-
namedImports: Array.from(this.httpMethodsUsed).map((it) => `_${it}`),
135+
namedImports: Array.from(this.httpMethodsUsed)
136+
.map((it) => `_${it}`)
137+
.sort(),
136138
moduleSpecifier: from,
137139
})
138140

0 commit comments

Comments
 (0)