1 | import { ReactElement } from "react";
|
2 |
|
3 | export type FieldType = "Field" | "FieldArray";
|
4 |
|
5 | export interface ErrorOther<T = string> {
|
6 | _error?: T | undefined;
|
7 | }
|
8 |
|
9 | export type FormErrors<FormData = {}, T = string> =
|
10 | & {
|
11 | [P in keyof FormData]?: ReactElement | T;
|
12 | }
|
13 | & ErrorOther<T>;
|
14 |
|
15 | export interface WarningOther<T = void> {
|
16 | _warning?: T | undefined;
|
17 | }
|
18 |
|
19 | export type FormWarnings<FormData = {}, T = void> = {
|
20 | [P in keyof FormData]?: ReactElement | string | WarningOther<T>;
|
21 | };
|
22 |
|
23 | export interface RegisteredFieldState {
|
24 | name: string;
|
25 | type: FieldType;
|
26 | }
|
27 |
|
28 | export type Omit<T, K extends keyof T> = Pick<
|
29 | T,
|
30 | ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never; [x: number]: never })[keyof T]
|
31 | >;
|
32 |
|
33 | export * from "./lib/actions";
|
34 | export * from "./lib/actionTypes";
|
35 | export * from "./lib/Field";
|
36 | export * from "./lib/FieldArray";
|
37 | export * from "./lib/Fields";
|
38 | export * from "./lib/Form";
|
39 | export * from "./lib/FormName";
|
40 | export * from "./lib/FormSection";
|
41 | export * from "./lib/formValues";
|
42 | export * from "./lib/formValueSelector";
|
43 | export * from "./lib/reducer";
|
44 | export * from "./lib/reduxForm";
|
45 | export * from "./lib/selectors";
|
46 | export * from "./lib/SubmissionError";
|