Current implementation only makes use of the dynamic validation (aka ValueCheck) of TypeBox but not its TypeCompiler (a high-performance JIT) which is a killer feature, especially when working with recursive or constrained type validation.
Summary of changes
Add options for the user to pass a TypeCheck object (returned from TypeCompiler.Compile()) instead of plain schema.
Add tests
Add document for using TypeCompiler
Fix typo in tests of the ValueCheck mode (it mentioned zod instead of typebox)
Description
ValueCheck
) ofTypeBox
but not itsTypeCompiler
(a high-performance JIT) which is a killer feature, especially when working with recursive or constrained type validation.Summary of changes
TypeCheck
object (returned fromTypeCompiler.Compile()
) instead of plain schema.TypeCompiler
ValueCheck
mode (it mentionedzod
instead oftypebox
)