UNPKG

@kform/react

Version:

React integration for KForm.

33 lines (32 loc) 1.08 kB
import { AbsolutePath } from "@kform/core"; /** Error occurring at a certain path. */ export declare class AtPathError extends Error { /** Path at which the error occurred. */ readonly path: AbsolutePath; constructor(path: AbsolutePath, message: string, options?: ErrorOptions); } /** Error thrown when an invalid {@link AtPathError.path path} was provided. */ export declare class InvalidPathError extends AtPathError { constructor(path: AbsolutePath, message: string); } /** * Error thrown when attempting to access the context of a form when no form is * in context. */ export declare class NoFormContextError extends Error { constructor(); } /** * Error thrown when attempting to access a form value but no form is in context * and no form manager was provided via an option. */ export declare class NoFormManagerError extends Error { constructor(); } /** * Error thrown when attempting to access the controller of a form but no form * controller is in context. */ export declare class NoFormControllerError extends Error { constructor(); }