From 6afe55bfb839165a793af668c8de7ddbb01138df Mon Sep 17 00:00:00 2001 From: Christie Robson Date: Thu, 11 Apr 2019 11:17:30 +0100 Subject: [PATCH] [recompose]: add componentDidCatch to lifecycle --- types/recompose/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/recompose/index.d.ts b/types/recompose/index.d.ts index c2a0b22d73..e143ebdf4e 100644 --- a/types/recompose/index.d.ts +++ b/types/recompose/index.d.ts @@ -257,6 +257,7 @@ declare module 'recompose' { componentWillUpdate?: (this: ReactLifeCycleFunctionsThisArguments, nextProps: TProps, nextState: TState) => void; componentDidUpdate?: (this: ReactLifeCycleFunctionsThisArguments, prevProps: TProps, prevState: TState) => void; componentWillUnmount?: (this: ReactLifeCycleFunctionsThisArguments) => void; + componentDidCatch?:(this: ReactLifeCycleFunctionsThisArguments, error: Error, info: React.ErrorInfo) => void; } export function lifecycle(