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(