UNPKG

@tomino/dynamic-form-semantic-ui

Version:

Semantic UI form renderer based on dynamic form generation

27 lines (26 loc) 861 B
import * as React from 'react'; import { FormComponentProps, FormComponent } from '@tomino/dynamic-form'; import { ContextType } from '../context'; export declare type ApolloQueryProps = { query: string; target: string; propTarget: string; loadingText: string; variables: { name: string; value: string; type: string; }[]; boundVariables: { name: string; source: string; }[]; onResult: string; onError: string; onQuery: string; fakeData: string; }; export declare function parseParameter(value: string, type: string): string | number | boolean; export declare function parseVariables(props: FormComponentProps, context: ContextType): any; export declare const ApolloQuery: React.FC<FormComponentProps<ApolloQueryProps>>; export declare const ApolloQueryView: FormComponent;