UNPKG

@effector-reform/zod

Version:

Zod schema adapter for effector-reform forms

16 lines (15 loc) 298 B
function o(n) { return async (e) => { try { return await n.parseAsync(e), null; } catch (u) { const { issues: a } = u; return a.reduce((r, t) => (r[t.path.join(".")] || (r[t.path.join(".")] = t.message), r), {}); } }; } export { o as zodAdapter };