Urara-Blog/node_modules/.pnpm-store/v3/files/a7/9e0a46e3de44c68ad2e82ba4d484c455508e83fde9ca85452c07cb8d401aa00bab01f05706f3ebea7031b24fd18b29751f68c69be3efd5ce6111224c759913
2022-08-14 01:14:53 +08:00

11 lines
445 B
Text

import { ErrorObject } from 'ajv';
import type { JSONSchema6 } from 'json-schema';
import { ValidationError } from './types/ValidationError';
export interface BetterAjvErrorsOptions {
errors: ErrorObject[] | null | undefined;
data: any;
schema: JSONSchema6;
basePath?: string;
}
export declare const betterAjvErrors: ({ errors, data, schema, basePath, }: BetterAjvErrorsOptions) => ValidationError[];
export { ValidationError };