diff --git a/compat/src/index.d.ts b/compat/src/index.d.ts index 093c7d0970..fa73cbe7ff 100644 --- a/compat/src/index.d.ts +++ b/compat/src/index.d.ts @@ -28,21 +28,14 @@ declare namespace preact { } export interface Component
{ - componentWillMount?(): void; componentDidMount?(): void; componentWillUnmount?(): void; getChildContext?(): object; - componentWillReceiveProps?(nextProps: Readonly
, nextContext: any): void; shouldComponentUpdate?( nextProps: Readonly
,
nextState: Readonly,
nextContext: any
): boolean;
- componentWillUpdate?(
- nextProps: Readonly
,
- nextState: Readonly,
- nextContext: any
- ): void;
getSnapshotBeforeUpdate?(oldProps: Readonly
, oldState: Readonly): any;
componentDidUpdate?(
previousProps: Readonly
,
diff --git a/demo/people/profile.tsx b/demo/people/profile.tsx
index fb18f568f5..5d5f900859 100644
--- a/demo/people/profile.tsx
+++ b/demo/people/profile.tsx
@@ -14,8 +14,10 @@ export class Profile extends Component =
| ComponentConstructor ;
export interface Component {
- componentWillMount?(): void;
componentDidMount?(): void;
componentWillUnmount?(): void;
getChildContext?(): object;
- componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
shouldComponentUpdate?(
nextProps: Readonly ,
nextState: Readonly =
| ComponentConstructor ;
export interface Component {
- componentWillMount?(): void;
componentDidMount?(): void;
componentWillUnmount?(): void;
getChildContext?(): object;
- componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
shouldComponentUpdate?(
nextProps: Readonly ,
nextState: Readonly,
diff --git a/src/index.d.ts b/src/index.d.ts
index e6b8fd549e..d9d9eaf393 100644
--- a/src/index.d.ts
+++ b/src/index.d.ts
@@ -111,11 +111,9 @@ export type AnyComponent,
diff --git a/test/ts/preact.tsx b/test/ts/preact.tsx
index c0fe2cfc08..43ce44427f 100644
--- a/test/ts/preact.tsx
+++ b/test/ts/preact.tsx
@@ -202,10 +202,6 @@ class ComponentWithLifecycle extends Component