@hono/zod-openapi 0.18.0 → 0.18.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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -93,7 +93,7 @@ type AsArray<T> = T extends undefined ? [] : T extends any[] ? T : [T];
|
|
|
93
93
|
* Like simplify but recursive
|
|
94
94
|
*/
|
|
95
95
|
type DeepSimplify<T> = {
|
|
96
|
-
[KeyType in keyof T]: T[KeyType] extends
|
|
96
|
+
[KeyType in keyof T]: T[KeyType] extends Record<string, unknown> ? DeepSimplify<T[KeyType]> : T[KeyType];
|
|
97
97
|
} & {};
|
|
98
98
|
/**
|
|
99
99
|
* Helper to infer generics from {@link MiddlewareHandler}
|
package/dist/index.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ type AsArray<T> = T extends undefined ? [] : T extends any[] ? T : [T];
|
|
|
93
93
|
* Like simplify but recursive
|
|
94
94
|
*/
|
|
95
95
|
type DeepSimplify<T> = {
|
|
96
|
-
[KeyType in keyof T]: T[KeyType] extends
|
|
96
|
+
[KeyType in keyof T]: T[KeyType] extends Record<string, unknown> ? DeepSimplify<T[KeyType]> : T[KeyType];
|
|
97
97
|
} & {};
|
|
98
98
|
/**
|
|
99
99
|
* Helper to infer generics from {@link MiddlewareHandler}
|