diff --git a/packages/hono-openapi-adapter/src/start/hono-adapter.ts b/packages/hono-openapi-adapter/src/start/hono-adapter.ts index ca3dc0c..a96bf3d 100644 --- a/packages/hono-openapi-adapter/src/start/hono-adapter.ts +++ b/packages/hono-openapi-adapter/src/start/hono-adapter.ts @@ -13,7 +13,7 @@ class HonoAdapter extends HttpAdapter { bindToContainers(container); } - public listen(config: FactoryConfig): IHttpServe { + public listen(config: FactoryConfig): IHttpServe { const app = IocContainer.container.get(Server); const configService = IocContainer.container.get(ConfigService); defineReflection(app); diff --git a/packages/hono-openapi-adapter/src/types/index.ts b/packages/hono-openapi-adapter/src/types/index.ts index c9a640c..c70ec94 100644 --- a/packages/hono-openapi-adapter/src/types/index.ts +++ b/packages/hono-openapi-adapter/src/types/index.ts @@ -5,11 +5,11 @@ import type { RouteConfig } from './hono-zod.type'; export type RouteParameters = RouteConfig; export type GuardsType = new (...args: any) => T; -export type FactoryConfig = FactoryBaseConfig & FactoryOAS; -export type FactoryOAS = { - metadata?: FactoryOASMetadatas; +export type FactoryConfig = FactoryBaseConfig & FactoryOAS; +export type FactoryOAS = { + metadata?: FactoryOASMetadatas; }; -export type FactoryOASMetadatas = { +export type FactoryOASMetadatas = { /** default: false */ enableSwaggerInProd?: boolean; /** default: /swagger */ @@ -18,7 +18,7 @@ export type FactoryOASMetadatas = { /** Url of OAP */ url: string; /** OAP configuration */ - config: OASType; + config: OASType; }; }; -type OASType = OpenAPIObjectConfigure; +type OASType = OpenAPIObjectConfigure;