import { ReactElement } from "react"; export type FieldType = "Field" | "FieldArray"; export interface ErrorOther { _error?: T | undefined; } export type FormErrors = & { [P in keyof FormData]?: ReactElement | T; } & ErrorOther; export interface WarningOther { _warning?: T | undefined; } export type FormWarnings = { [P in keyof FormData]?: ReactElement | string | WarningOther; }; export interface RegisteredFieldState { name: string; type: FieldType; } export type Omit = Pick< T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never; [x: number]: never })[keyof T] >; export * from "./lib/actions"; export * from "./lib/actionTypes"; export * from "./lib/Field"; export * from "./lib/FieldArray"; export * from "./lib/Fields"; export * from "./lib/Form"; export * from "./lib/FormName"; export * from "./lib/FormSection"; export * from "./lib/formValues"; export * from "./lib/formValueSelector"; export * from "./lib/reducer"; export * from "./lib/reduxForm"; export * from "./lib/selectors"; export * from "./lib/SubmissionError";