diff --git a/types/redux-form/index.d.ts b/types/redux-form/index.d.ts index d4291ec227455e..1a86e73fd4aa64 100644 --- a/types/redux-form/index.d.ts +++ b/types/redux-form/index.d.ts @@ -1,4 +1,4 @@ -import { ComponentClass, FunctionComponent, ReactElement } from "react"; +import { ReactElement } from "react"; export type FieldType = "Field" | "FieldArray"; diff --git a/types/redux-form/lib/Field.d.ts b/types/redux-form/lib/Field.d.ts index a5de41a63a04f1..606f40358f4593 100644 --- a/types/redux-form/lib/Field.d.ts +++ b/types/redux-form/lib/Field.d.ts @@ -5,7 +5,6 @@ import { DragEvent, FocusEvent, InputHTMLAttributes, - ReactElement, SelectHTMLAttributes, TextareaHTMLAttributes, } from "react"; diff --git a/types/redux-form/lib/Form.d.ts b/types/redux-form/lib/Form.d.ts index 2f91b1c3414049..1d47bb96cb4bca 100644 --- a/types/redux-form/lib/Form.d.ts +++ b/types/redux-form/lib/Form.d.ts @@ -1,5 +1,5 @@ -import { Component, FormEvent, FormEventHandler, FormHTMLAttributes } from "react"; -import { FormErrors, FormSubmitHandler, Omit } from "../index"; +import { Component, FormHTMLAttributes } from "react"; +import { FormSubmitHandler, Omit } from "../index"; interface FormSubmitProp { onSubmit?: FormSubmitHandler | undefined; diff --git a/types/redux-form/lib/formValues.d.ts b/types/redux-form/lib/formValues.d.ts index 057c26eba553c7..c88a7a06c860bb 100644 --- a/types/redux-form/lib/formValues.d.ts +++ b/types/redux-form/lib/formValues.d.ts @@ -1,5 +1,4 @@ import { ComponentClass, ComponentType } from "react"; -import { InjectedFormProps } from "../index"; export function formValues< Values, diff --git a/types/redux-form/redux-form-tests.tsx b/types/redux-form/redux-form-tests.tsx index 5a010949262048..34b0dcb744c136 100644 --- a/types/redux-form/redux-form-tests.tsx +++ b/types/redux-form/redux-form-tests.tsx @@ -1,19 +1,17 @@ import * as React from "react"; -import { Action, Dispatch } from "redux"; +import { Dispatch } from "redux"; import { actionTypes, BaseFieldProps, DecoratedFormProps, Field, FieldArray, - FieldArrayFieldsProps, Fields, Form, FormAction, FormName, FormSection, formValues, - formValueSelector, GenericField, GenericFieldArray, GenericFields, @@ -29,17 +27,11 @@ import { WrappedFieldsProps, } from "redux-form"; -import { - Field as ImmutableField, - reduxForm as immutableReduxForm, - startSubmit as immutableStartSubmit, - stopSubmit as immutableStopSubmit, -} from "redux-form/immutable"; +import { Field as ImmutableField, reduxForm as immutableReduxForm } from "redux-form/immutable"; import libActions from "redux-form/lib/actions"; -import LibField, { WrappedFieldProps as LibWrappedFieldProps } from "redux-form/lib/Field"; +import LibField from "redux-form/lib/Field"; import LibFormSection from "redux-form/lib/FormSection"; -import libFormValueSelector from "redux-form/lib/formValueSelector"; import libReducer from "redux-form/lib/reducer"; import libReduxForm from "redux-form/lib/reduxForm"; import LibSubmissionError from "redux-form/lib/SubmissionError";