UNPKG

@decaf-ts/decorator-validation

Version:
23 lines (22 loc) 610 B
import { ModelErrors } from "../validation/types"; /** * @summary Helper Class to hold the error results * @description holds error results in an 'indexable' manner * while still providing the same result on toString * * @param {ModelErrors} errors * * @class ModelErrorDefinition * * @category Model */ export declare class ModelErrorDefinition { [indexer: string]: Record<string, string | undefined> | (() => string | undefined); constructor(errors: ModelErrors); /** * @summary Outputs the class to a nice readable string * * @override */ toString(): string; }