⚠ This is just a toy project.
Generate validator automaticaly by using TypeScript types.
This library is inspired by https://github.com/vedantroy/typecheck.macro.
const validate = initValidator<number>;
validate(3); // { ok: true, value: 3 }
validate("3"); // { ok: false, error: ValidationError(...) }
MIT