UNPKG

react-forminate

Version:

React.js + Typescript package that creates dynamic UI forms based on the JSON schema

9 lines (8 loc) 342 B
import { FormDataCollectionType } from '../types'; export declare const useDynamicOptions: (formSchema: FormDataCollectionType) => { dynamicOptions: Record<string, any[]>; fetchDynamicOptions: (fieldId: string, allValues?: Record<string, any>, pagination?: { page?: number; limit?: number; }) => Promise<void>; };