Skip to content

Commit 8e8dd92

Browse files
authored
Merge pull request #4479 from preactjs/fix/any-component-type
fix: `AnyComponent` type to support classes
2 parents 2c6df95 + 84f1083 commit 8e8dd92

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)