UNPKG

form-test-victor

Version:

# Performant forms and wizard library for React

10 lines 522 B
/// <reference types="react" /> import { Validator } from '../types/Validation'; export interface RuleContextApi { registerRule: (testFn: Validator, errorMessage: string, isDebounced: boolean) => void; unregisterRule: (testFn: Validator, isDebounced: boolean) => void; } export declare const CONTEXT_RULE_DEFAULT: RuleContextApi; export declare const RuleContext: import("react").Context<RuleContextApi>; export declare const useRuleContext: () => RuleContextApi; //# sourceMappingURL=RuleContext.d.ts.map