UNPKG

@sparklink-pro/apant

Version:

Apollo & Antd tools

32 lines 1.09 kB
import { FormContentType, FormContextType, FormEntryType, FormFieldMapperType, FormFieldResolvedType, FormFieldWidgetType, FormListResolvedType } from '../../definitions'; export declare const FIELDS: { checkbox: string; checkbox_multiple: string; select: string; select_multiple: string; radio: string; switch: string; type: string; select_type: string; types: string; select_types: string; number: string; date: string; time: string; datetime: string; textarea: string; hidden: string; text: string; input: string; }; /** * Resolve a widget */ export declare const resolveWidget: (widgetDefinition: string | FormFieldWidgetType | undefined) => Required<FormFieldWidgetType>; export type useFieldsProps = { fields: (FormEntryType | FormContentType)[]; mappers?: FormFieldMapperType[]; context: FormContextType; }; export declare const useFields: ({ fields, mappers, context }: useFieldsProps) => (FormFieldResolvedType | FormListResolvedType | FormContentType)[]; //# sourceMappingURL=useFields.d.ts.map