lazy()
lazy<
T>(getter,message?):LazySchema<T>
Lazy schema - allows creating recursive types by deferring evaluation.
Type Parametersโ
T: Tโ
Parametersโ
getter: () => Schema<T>โ
Function that returns the schema to evaluate.
message?: stringโ
Custom error message.
Returns: LazySchema<T>โ
Lazy schema that evaluates the schema on demand.
Sinceโ
2.0.0