const checkCustom = (rule:rule, value: unknown) => {
const { custom } = rule;
if (toRawType(custom) !== 'Function') {
throw new Error('custom need function type values');
}
return custom(rule, value);
};
const checkCustom = (rule:rule, value: unknown) => {
const { custom } = rule;
if (toRawType(custom) !== 'Function') {
throw new Error('custom need function type values');
}
return custom(rule, value);
};