UNPKG

react-magic-form

Version:

Boilerplate for Resact with Typescript with rollup.js (not webpack)

19 lines (18 loc) 693 B
import { FieldSelectData } from './types'; interface MessageDefault { required: string; minLength: string; maxLength: string; pattern: string; } export declare const validationMessage: MessageDefault; export declare const getLayoutValue: (layout: string) => number; export declare const getLayoutColClass: (layout: string) => string; export declare const getSelectDefaultValue: (_data: FieldSelectData[]) => string; interface Response { status: boolean; data: any; } export declare const fetchData: (url: string) => Promise<Response>; export declare const onSubmitBackendCall: (url: string, method: string, data: any) => Promise<Response>; export {};