yup##

 avatar
abcd1234
plain_text
2 months ago
150 B
2
Indexable
Never
export const yupSync = (schema) => ({
  async validator({ field }, value) {
    await schema.validateSyncAt(field, { [field]: value });
  },
});
Leave a Comment