UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

23 lines 840 B
import type { StandardSchemaV1FailureResult } from "./EntAccessError"; import { EntAccessError } from "./EntAccessError"; /** * Error: thrown after all validators are executed, and some of them think that * the row is invalid. */ export declare class EntValidationError extends EntAccessError { readonly errors: readonly EntValidationErrorInfo[]; constructor(entName: string, errors: readonly EntValidationErrorInfo[]); /** * Converts the payload to a Standard Schema V1 compatible error result. See * https://standardschema.dev. */ toStandardSchemaV1(): StandardSchemaV1FailureResult; } /** * Auxiliary information which every validation predicate should emit. */ export interface EntValidationErrorInfo { field: string | null; message: string; } //# sourceMappingURL=EntValidationError.d.ts.map