Skip to content

Commit

Permalink
Fix Lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
FergusonSean committed Jun 3, 2023
1 parent 1d81944 commit 3d53561
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 45 deletions.
14 changes: 9 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type LoadDirectoryConfig<Controller> = {
controllerPath?: string
defaultControllerGenerator?: (config: {controllerPath: string}) => Controller | Promise<Controller>
controllerProcessors?: ControllerProcessor<Controller>[]
swagger?: any
swagger?: Record<string, any>
}

export const loadDirectory = async <Controller extends DefaultController>({
Expand Down Expand Up @@ -155,7 +155,7 @@ export const loadDirectory = async <Controller extends DefaultController>({
});

if(swagger) {
const swaggerStatic = {
const swaggerStatic: Record<string, any> = {
...swagger,
paths: swaggerPaths,
}
Expand All @@ -168,7 +168,7 @@ export const loadDirectory = async <Controller extends DefaultController>({
},
],
})
var options = {
const options = {
swaggerOptions: {
url: "/api-docs/swagger.json",
},
Expand Down
16 changes: 7 additions & 9 deletions test/cjs-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions test/mjs-app-custom-processor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions test/mjs-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/next-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 7 additions & 9 deletions test/ts-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3d53561

Please sign in to comment.