UNPKG

@dwp/govuk-casa

Version:

Framework for creating basic GOVUK Collect-And-Submit-Applications

15 lines (10 loc) 452 B
import { ValidationErrorObject, ValidatorErrorObjectGenerator, ValidatorContext } from '../../index'; export = ValidationError; declare class ValidationError { constructor(errorParam: ValidationErrorObject | string); static make(params: { errorMsg: string | ValidationErrorObject | ValidatorErrorObjectGenerator | Error, dataContext?: ValidatorContext }): ValidationError; withContext(context: ValidatorContext): ValidationError; }