UNPKG

@canard/schema-form

Version:

React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components

11 lines (10 loc) 446 B
import type { JsonSchemaError } from '../../types'; /** * Filter errors and add key to each error * @warning THIS FUNCTION CHANGE INPUT ERRORS * @param errors - JsonSchemaError errors * @param omits - keywords to omit from errors * @param useKey - whether to use key(key is number) * @returns schema-form errors */ export declare const transformErrors: (errors: JsonSchemaError[], omits?: Set<string>, key?: boolean) => JsonSchemaError[];