mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-06 10:10:08 +00:00
Merge pull request #34654 from ChristieRobson/recompose/lifecycle
[recompose]: add componentDidCatch to lifecycle
This commit is contained in:
1
types/recompose/index.d.ts
vendored
1
types/recompose/index.d.ts
vendored
@@ -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