mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 01:59:31 +08:00
11 lines
445 B
Text
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 };
|