Skip to content

Commit

Permalink
Fixed type issue with ComponentProps from older @types/react (#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored Sep 21, 2022
1 parent fb8cfc0 commit bbc546e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { ClassAttributes, ComponentClass, ComponentType } from 'react'
import {
ClassAttributes,
ComponentClass,
ComponentType,
FunctionComponent,
} from 'react'

import { Action, AnyAction, Dispatch } from 'redux'

Expand Down Expand Up @@ -82,7 +87,7 @@ export type GetLibraryManagedProps<C> = JSX.LibraryManagedAttributes<
export type ConnectedComponent<
C extends ComponentType<any>,
P
> = ComponentType<P> &
> = FunctionComponent<P> &
NonReactStatics<C> & {
WrappedComponent: C
}
Expand Down

0 comments on commit bbc546e

Please sign in to comment.