diff --git a/src/index.ts b/src/index.ts index 9c73ab863..7f800e61a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -52,7 +52,7 @@ export type { ResultHandlerDefinition, StatusDependingDefinition, } from "./result-handler"; -export type { NormalizedResponse } from "./api-response"; +export type { NormalizedResponse, ApiResponse } from "./api-response"; export type { BasicSecurity, BearerSecurity, diff --git a/tests/unit/index.spec.ts b/tests/unit/index.spec.ts index 488274408..a0cc1ac34 100644 --- a/tests/unit/index.spec.ts +++ b/tests/unit/index.spec.ts @@ -99,6 +99,7 @@ describe("Index Entrypoint", () => { expectType>({ type: "input", name: "" }); expectType>({ type: "oauth2" }); expectType({ type: "openid", url: "" }); + expectType>({ schema: z.string() }); expectType({ schema: z.string(), mimeTypes: ["test"],