@forklaunch/validator 0.3.0 → 0.3.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.
@@ -53,11 +53,11 @@ export type UnionTResolve<T extends TUnionContainer> = T extends [
53
53
  }
54
54
  ] : [];
55
55
  /**
56
- * Resolves a schema type T to its resolved type. The depth is limited to 45 to prevent infinite recursion.
56
+ * Resolves a schema type T to its resolved type. The depth is limited to 22 to prevent infinite recursion.
57
57
  *
58
58
  * @template T - The schema type to resolve.
59
59
  * @template Depth - The current depth of the resolution.
60
60
  */
61
- export type TResolve<T, Depth extends number = 0> = Depth extends 45 ? TUnknown : T extends LiteralSchema ? TLiteral<T> : T extends TObject<TObjectShape> ? T : T extends TSchema ? T : T extends TKind ? T : T extends UnboxedTObjectSchema ? TObject<{
61
+ export type TResolve<T, Depth extends number = 0> = Depth extends 22 ? TUnknown : T extends LiteralSchema ? TLiteral<T> : T extends TKind ? T : T extends TObject<TObjectShape> ? T : T extends UnboxedTObjectSchema ? TObject<{
62
62
  [K in keyof T]: TResolve<T[K], Increment<Depth>>;
63
63
  }> : TNever;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/validator",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Schema validator for ForkLaunch components.",
5
5
  "files": [
6
6
  "dist"