@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) • 560 B
TypeScript
import { BaseError, type ErrorDetails } from '@winglet/common-utils/error';
/**
* Error class for schema node-related errors.
* Used to handle issues that occur during node processing.
*/
export declare class SchemaNodeError extends BaseError {
constructor(code: string, message: string, details?: ErrorDetails);
}
/**
* Checks if the given error is of SchemaNodeError type.
* @param error - Error object to check
* @returns Whether it is SchemaNodeError type
*/
export declare const isSchemaNodeError: (error: unknown) => error is SchemaNodeError;