@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
15 lines (14 loc) • 565 B
TypeScript
import { BaseError, type ErrorDetails } from '@winglet/common-utils/error';
/**
* Base error class for schema form-related errors.
* Used to handle issues that occur during form processing.
*/
export declare class SchemaFormError extends BaseError {
constructor(code: string, message: string, details?: ErrorDetails);
}
/**
* Checks if the given error is of SchemaFormError type.
* @param error - Error object to check
* @returns Whether it is SchemaFormError type
*/
export declare const isSchemaFormError: (error: unknown) => error is SchemaFormError;