react-browser-form
Version:
<div align="center"> <a href="https://deniskabana.github.io/react-browser-form/introduction" title="React Browser Form - Form management in React made simple for browsers."> <img src="https://raw.githubusercontent.com/deniskabana/react-browser-form/
18 lines (17 loc) • 796 B
TypeScript
import { BrowserFormOptions } from "./types";
/** Default options according to the schema */
export declare const DEFAULT_OPTIONS: Partial<BrowserFormOptions<unknown>>;
/** Default validation messages */
export declare const DEFAULT_REQUIRED_ERROR_MESSAGE = "This field is required.";
export declare const DEFAULT_VALIDATION_ERROR_MESSAGE = "This field is incorrect.";
/** Errors returned from options combination protection */
export declare const ERROR_PREFIX = "[react-browser-form]:";
export declare const ERRORS: {
NAME_INVALID: string;
MISSING_DEFAULT_VALUES: string;
VALIDATION_SCHEMA_REQUIRED: string;
INCORRECT_VALIDATION_SCHEMA: string;
ONCHANGE_MODE_ONCHANGE_FN: string;
LIVE_FIELDS_ONCHANGE_FN: string;
ONCHANGE_AND_LIVEFIELDS: string;
};