File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ declare namespace preact {
22
22
key :string ;
23
23
}
24
24
25
- interface ComponentLifecycle < PropsType , StateType > {
25
+ abstract class ComponentLifecycle < PropsType , StateType > {
26
26
componentWillMount ?( ) :void ;
27
27
componentDidMount ?( ) :void ;
28
28
componentWillUnmount ?( ) :void ;
@@ -45,7 +45,7 @@ declare namespace preact {
45
45
// Type alias for a component considered generally, whether stateless or stateful.
46
46
type AnyComponent < PropsType , StateType > = FunctionalComponent < PropsType > | typeof Component ;
47
47
48
- abstract class Component < PropsType , StateType > implements ComponentLifecycle < PropsType , StateType > {
48
+ abstract class Component < PropsType , StateType > extends ComponentLifecycle < PropsType , StateType > {
49
49
constructor ( props ?:PropsType , context ?:any ) ;
50
50
51
51
static displayName ?:string ;
You can’t perform that action at this time.
0 commit comments