UNPKG

@data-driven-forms/react-form-renderer

Version:

React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.

23 lines (22 loc) 1.11 kB
import { ReactNode } from 'react'; import Validators from '../validators'; import { ValidatorFunction } from '../validators'; export declare const TO_STRING: () => string; export declare const memoize: (func: Function) => ValidatorFunction; interface MessageObject { id?: string; defaultMessage: ReactNode | ((arg: any) => ReactNode); values: object; } export declare const prepareMsg: (msg: ReactNode | ((arg: any) => ReactNode), type: keyof typeof Validators.messages, values: object) => MessageObject; export declare const assign: { <T extends {}, U>(target: T, source: U): T & U; <T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V; <T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W; (target: object, ...sources: any[]): any; }; export declare const prepare: (func: Function) => (value: any, allValues?: object, ...args: any[]) => any; export declare const isNumber: (num: any) => boolean; export declare function selectNum(var1: any, var2?: any): number | null; export declare const trunc: (num: number) => number; export {};