import { computed as e } from "vue";
function t(e, t) {
	let n = [];
	return t && t.length > 0 && t.forEach((t) => {
		let r = t(e);
		typeof r == "string" && n.push(r);
	}), {
		isValid: n.length === 0,
		errors: n
	};
}
function n(n, r) {
	return e(() => t(n.value, r));
}
export { n as useValidation };

//# sourceMappingURL=useValidation.js.map