@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 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 object ? DeepSimplify<T[KeyType]> : T[KeyType];
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 object ? DeepSimplify<T[KeyType]> : T[KeyType];
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hono/zod-openapi",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "A wrapper class of Hono which supports OpenAPI.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",