@fjell/core
Version:
Core Item and Key Framework for Fjell
11 lines (10 loc) • 377 B
TypeScript
import { ActionError } from './ActionError';
export interface FieldError {
path: (string | number)[];
message: string;
code: string;
}
export declare class ValidationError extends ActionError {
fieldErrors?: FieldError[];
constructor(message: string, validOptions?: string[], suggestedAction?: string, conflictingValue?: any, fieldErrors?: FieldError[]);
}