Skip to content

Commit

Permalink
Preventing #952: exposing ApiResponse type.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Jan 1, 2024
1 parent 4e84488 commit ff1eb06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions tests/unit/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ describe("Index Entrypoint", () => {
expectType<InputSecurity<string>>({ type: "input", name: "" });
expectType<OAuth2Security<string>>({ type: "oauth2" });
expectType<OpenIdSecurity>({ type: "openid", url: "" });
expectType<ApiResponse<z.ZodTypeAny>>({ schema: z.string() });
expectType<NormalizedResponse>({
schema: z.string(),
mimeTypes: ["test"],
Expand Down

0 comments on commit ff1eb06

Please sign in to comment.