We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c6df95 + 84f1083 commit 8e8dd92Copy full SHA for 8e8dd92
src/index.d.ts
@@ -110,7 +110,7 @@ export interface ComponentConstructor<P = {}, S = {}>
110
// Type alias for a component instance considered generally, whether stateless or stateful.
111
export type AnyComponent<P = {}, S = {}> =
112
| FunctionComponent<P>
113
- | Component<P, S>;
+ | ComponentConstructor<P, S>;
114
115
export interface Component<P = {}, S = {}> {
116
componentWillMount?(): void;
0 commit comments