UNPKG

@cobuildlab/validation-utils

Version:

This is package to deal with common scenarios working with Javascript validations

13 lines (12 loc) 414 B
/** * Receives an array on errors and saves a message with all errors separated * by a new line character '\n'. Use css "white-space: pre-wrap;" To show The * newlines on the html container, or use the errors property if you need * the array. * * @param errors - The list of error messages. */ export declare class ValidationErrors extends Error { errors: string[]; constructor(errors: string[]); }