import { Field, FieldConfig, FieldError, IField, FieldInterface } from '../common'; export interface RadioFieldConfig extends FieldConfig, FieldInterface { type: 'radio'; options?: any; regExp?: { expression: string; message?: string; }; } export interface IRadioField { value: string; options?: any; onChange: (value: string) => Promise; } export default class RadioField extends Field implements IField { reset: () => Promise; validate: (value: string) => Promise; renderComponent: (props: IRadioField) => JSX.Element; render: () => JSX.Element; }