Skip to content

Type Alias: VineValidationError

ts
type VineValidationError = InstanceType<typeof errors.E_VALIDATION_ERROR>;

Type alias for Vine validation errors thrown by the VineJS validation library.

Example

typescript
try {
  await vine.validate(schema, data);
} catch (error) {
  if (isVineValidationError(error)) {
    // Handle Vine validation error
  }
}