@kform/react
Version:
React integration for KForm.
29 lines (28 loc) • 786 B
TypeScript
import { AbsolutePath } from "@kform/core";
/**
* 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();
}
/**
* Error occurring at a certain path.
*/
export declare class PathError extends Error {
constructor(path: AbsolutePath, message: string);
}