Skip to content

Commit 8ccfbf8

Browse files
committed
Fixed type issue with ComponentProps from older @types/react
1 parent fb8cfc0 commit 8ccfbf8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/types.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { ClassAttributes, ComponentClass, ComponentType } from 'react'
1+
import {
2+
ClassAttributes,
3+
ComponentClass,
4+
ComponentType,
5+
FunctionComponent,
6+
} from 'react'
27

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

@@ -82,7 +87,7 @@ export type GetLibraryManagedProps<C> = JSX.LibraryManagedAttributes<
8287
export type ConnectedComponent<
8388
C extends ComponentType<any>,
8489
P
85-
> = ComponentType<P> &
90+
> = FunctionComponent<P> &
8691
NonReactStatics<C> & {
8792
WrappedComponent: C
8893
}

0 commit comments

Comments
 (0)