Skip to content

Commit 3c95a03

Browse files
committed
types(overmind-react): update IReactComponent type
1 parent b8ed74a commit 3c95a03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/overmind-react/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ const isNode =
1919
process.title.includes('node')
2020

2121
export type IReactComponent<P = any> =
22+
| React.FC<P>
2223
| React.FunctionComponent<P>
2324
| React.ComponentClass<P>
24-
| React.ClassicComponentClass<P>
25+
| React.ForwardRefExoticComponent<P>
26+
| React.MemoExoticComponent<React.ComponentType<P>>
27+
| React.LazyExoticComponent<React.ComponentType<P>>
28+
| React.ComponentType<P>
2529

2630
function getFiberType(component) {
2731
if (component.type) {

0 commit comments

Comments
 (0)