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