Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#69741 [@types/redux-form] Remove unused im…
Browse files Browse the repository at this point in the history
…ports by @ANetuk

Co-authored-by: Artem Netuk <[email protected]>
  • Loading branch information
ANetuk and Artem Netuk authored Jun 4, 2024
1 parent e40cab5 commit 53e6c8d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion types/redux-form/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentClass, FunctionComponent, ReactElement } from "react";
import { ReactElement } from "react";

export type FieldType = "Field" | "FieldArray";

Expand Down
1 change: 0 additions & 1 deletion types/redux-form/lib/Field.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
DragEvent,
FocusEvent,
InputHTMLAttributes,
ReactElement,
SelectHTMLAttributes,
TextareaHTMLAttributes,
} from "react";
Expand Down
4 changes: 2 additions & 2 deletions types/redux-form/lib/Form.d.ts
Original file line number Diff line number Diff line change
@@ -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<FormData = {}, P = {}, ErrorType = string> {
onSubmit?: FormSubmitHandler<FormData, P, ErrorType> | undefined;
Expand Down
1 change: 0 additions & 1 deletion types/redux-form/lib/formValues.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ComponentClass, ComponentType } from "react";
import { InjectedFormProps } from "../index";

export function formValues<
Values,
Expand Down
14 changes: 3 additions & 11 deletions types/redux-form/redux-form-tests.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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";
Expand Down

0 comments on commit 53e6c8d

Please sign in to comment.