Files
base/node_modules/@apideck/better-ajv-errors/dist/index.d.ts
T
eewing c0fae761da
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m24s
PWA
2026-02-19 07:41:49 -06:00

12 lines
456 B
TypeScript

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 };