@hono/zod-openapi
Advanced tools
Comparing version 0.14.3 to 0.14.4
@@ -7,4 +7,4 @@ import * as openapi3_ts_oas31 from 'openapi3-ts/oas31'; | ||
import { MergePath, MergeSchemaPath } from 'hono/types'; | ||
import { JSONParsed, RemoveBlankRecord } from 'hono/utils/types'; | ||
import { StatusCode, InfoStatusCode, SuccessStatusCode, RedirectStatusCode, ClientErrorStatusCode, ServerErrorStatusCode } from 'hono/utils/http-status'; | ||
import { RemoveBlankRecord } from 'hono/utils/types'; | ||
import { ZodError, ZodType, z, ZodSchema } from 'zod'; | ||
@@ -68,3 +68,3 @@ export { z } from 'zod'; | ||
type RouteConfigToTypedResponse<R extends RouteConfig> = { | ||
[Status in keyof R['responses'] & RouteConfigStatusCode]: IsJson<keyof R['responses'][Status]['content']> extends never ? TypedResponse<{}, ExtractStatusCode<Status>, string> : TypedResponse<ExtractContent<R['responses'][Status]['content']>, ExtractStatusCode<Status>, 'json'>; | ||
[Status in keyof R['responses'] & RouteConfigStatusCode]: IsJson<keyof R['responses'][Status]['content']> extends never ? TypedResponse<{}, ExtractStatusCode<Status>, string> : TypedResponse<JSONParsed<ExtractContent<R['responses'][Status]['content']>>, ExtractStatusCode<Status>, 'json'>; | ||
}[keyof R['responses'] & RouteConfigStatusCode]; | ||
@@ -71,0 +71,0 @@ type Hook<T, E extends Env, P extends string, R> = (result: { |
{ | ||
"name": "@hono/zod-openapi", | ||
"version": "0.14.3", | ||
"version": "0.14.4", | ||
"description": "A wrapper class of Hono which supports OpenAPI.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
41931