@hono/zod-openapi 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -54,7 +54,7 @@ type Hook<T, E extends Env, P extends string, O> = (result: {
|
|
|
54
54
|
success: false;
|
|
55
55
|
error: ZodError;
|
|
56
56
|
}, c: Context<E, P>) => TypedResponse<O> | Promise<TypedResponse<T>> | void;
|
|
57
|
-
type ConvertPathType<T extends string> = T extends `${infer
|
|
57
|
+
type ConvertPathType<T extends string> = T extends `${infer Start}/{${infer Param}}${infer Rest}` ? `${Start}/:${Param}${ConvertPathType<Rest>}` : T;
|
|
58
58
|
type HandlerResponse<O> = TypedResponse<O> | Promise<TypedResponse<O>>;
|
|
59
59
|
type OpenAPIHonoOptions<E extends Env> = {
|
|
60
60
|
defaultHook?: Hook<any, E, any, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ type Hook<T, E extends Env, P extends string, O> = (result: {
|
|
|
54
54
|
success: false;
|
|
55
55
|
error: ZodError;
|
|
56
56
|
}, c: Context<E, P>) => TypedResponse<O> | Promise<TypedResponse<T>> | void;
|
|
57
|
-
type ConvertPathType<T extends string> = T extends `${infer
|
|
57
|
+
type ConvertPathType<T extends string> = T extends `${infer Start}/{${infer Param}}${infer Rest}` ? `${Start}/:${Param}${ConvertPathType<Rest>}` : T;
|
|
58
58
|
type HandlerResponse<O> = TypedResponse<O> | Promise<TypedResponse<O>>;
|
|
59
59
|
type OpenAPIHonoOptions<E extends Env> = {
|
|
60
60
|
defaultHook?: Hook<any, E, any, any>;
|