mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
[recompose]: add componentDidCatch to lifecycle
This commit is contained in:
Vendored
+1
@@ -257,6 +257,7 @@ declare module 'recompose' {
|
||||
componentWillUpdate?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, nextProps: TProps, nextState: TState) => void;
|
||||
componentDidUpdate?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, prevProps: TProps, prevState: TState) => void;
|
||||
componentWillUnmount?: (this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>) => void;
|
||||
componentDidCatch?:(this: ReactLifeCycleFunctionsThisArguments<TProps, TState, TInstance>, error: Error, info: React.ErrorInfo) => void;
|
||||
}
|
||||
|
||||
export function lifecycle<TProps, TState, TInstance = {}>(
|
||||
|
||||
Reference in New Issue
Block a user