Creates a lazy schema that defers the schema definition until first validation.
Use this to define recursive/self-referential schemas.
The getter function is called once on first use and the result is cached.
You must provide an explicit TypeScript type annotation on the variable
holding the outer schema — TypeScript cannot infer recursive types automatically.
Creates a lazy schema that defers the schema definition until first validation. Use this to define recursive/self-referential schemas.
The getter function is called once on first use and the result is cached. You must provide an explicit TypeScript type annotation on the variable holding the outer schema — TypeScript cannot infer recursive types automatically.