zod
Implementation of Zod. Schemas are constructed as AST nodes and reconstructed into real Zod validators at runtime by the interpreter.
Included on the default interpreter.
const app = mvfm(prelude, zod);
const prog = app({ value: "string" }, ($) =>
$.zod.string().min(3).parse($.input.value)
);
await fold(
defaults(app),
injectInput(prog, { value: "hello" })
); Ctrl+Enter