Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mathysth committed Mar 17, 2024
1 parent 47ef014 commit 40378f8
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/hono-openapi-adapter/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { HonoFactory } from './start/hono-adapter';
export * from './server';
export * from './server';
2 changes: 1 addition & 1 deletion packages/hono-openapi-adapter/src/ioc/bind-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import { Server } from '../server';
* Bind all classes to container
*/
export const bindToContainers = (container: Container): void => {
container.bind(Server).toSelf().inSingletonScope();
container.bind(Server).toSelf().inSingletonScope();
};
2 changes: 1 addition & 1 deletion packages/hono-openapi-adapter/src/ioc/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { bindToContainers } from './bind-container'
export { bindToContainers } from './bind-container';
2 changes: 1 addition & 1 deletion packages/hono-openapi-adapter/src/server/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Server } from './server'
export { Server } from './server';
2 changes: 1 addition & 1 deletion packages/hono-openapi-adapter/src/server/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Env } from 'hono';
import { OpenAPIHono } from '@hono/zod-openapi';
import type { Env } from 'hono';
import { injectable } from 'inversify';

@injectable()
Expand Down
4 changes: 2 additions & 2 deletions packages/hono-openapi-adapter/src/start/hono-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { Server } from '../server';

class HonoAdapter {
public listen(port: number, container: Container) {
bindToContainers(container);
const app = container.get(Server);
bindToContainers(container);
const app = container.get(Server);

return {
port,
Expand Down
2 changes: 1 addition & 1 deletion packages/hono-openapi-adapter/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"compilerOptions": {
"strict": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"experimentalDecorators": true
}
}

0 comments on commit 40378f8

Please sign in to comment.