UNPKG

@bshg/validation

Version:

Validation Library for TypeScript projects

12 lines (11 loc) 504 B
import { ValidatorResult } from "./validator-result-objects"; import { ValidatorResultInfo } from "../utils"; import { BshgError } from "../exceptions"; export declare class BshValidationError<TV extends Record<string, any> = any> extends BshgError { readonly results: ValidatorResult<TV>; constructor(results: ValidatorResult<TV>); } export declare class BshBatchValidationError extends BshgError { readonly results: ValidatorResultInfo[]; constructor(results: ValidatorResultInfo[]); }