Skip to content

Commit 84f1083

Browse files
authored
fix: AnyComponent type to support classes
1 parent 2c6df95 commit 84f1083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export interface ComponentConstructor<P = {}, S = {}>
110110
// Type alias for a component instance considered generally, whether stateless or stateful.
111111
export type AnyComponent<P = {}, S = {}> =
112112
| FunctionComponent<P>
113-
| Component<P, S>;
113+
| ComponentConstructor<P, S>;
114114

115115
export interface Component<P = {}, S = {}> {
116116
componentWillMount?(): void;

0 commit comments

Comments
 (0)