Skip to content

Commit

Permalink
Add _patchedLifecycles to compat/src/internal.d.ts (#2408)
Browse files Browse the repository at this point in the history
Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
  • Loading branch information
38elements and JoviDeCroock committed Mar 15, 2020
1 parent 8fadb6c commit 6599153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/src/internal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export { PreactElement } from '../../src/internal';
export interface Component<P = {}, S = {}> extends PreactComponent<P, S> {
isReactComponent?: object;
isPureReactComponent?: true;
_patchedLifecycles?: true;

_childDidSuspend?(
error: Promise<void>,
Expand All @@ -24,6 +25,7 @@ export interface FunctionalComponent<P = {}>
extends PreactFunctionalComponent<P> {
shouldComponentUpdate?(nextProps: Readonly<P>): boolean;
_forwarded?: boolean;
_patchedLifecycles?: true;
}

export interface VNode<T = any> extends PreactVNode<T> {
Expand Down

0 comments on commit 6599153

Please sign in to comment.