mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 14:38:20 +08:00
Merge pull request #26009 from Crashthatch/master
react: change default type value of ComponentLifecycle snapshot to any
This commit is contained in:
2
types/react/index.d.ts
vendored
2
types/react/index.d.ts
vendored
@@ -369,7 +369,7 @@ declare namespace React {
|
||||
// This should actually be something like `Lifecycle<P, S> | DeprecatedLifecycle<P, S>`,
|
||||
// as React will _not_ call the deprecated lifecycle methods if any of the new lifecycle
|
||||
// methods are present.
|
||||
interface ComponentLifecycle<P, S, SS = never> extends NewLifecycle<P, S, SS>, DeprecatedLifecycle<P, S> {
|
||||
interface ComponentLifecycle<P, S, SS = any> extends NewLifecycle<P, S, SS>, DeprecatedLifecycle<P, S> {
|
||||
/**
|
||||
* Called immediately after a compoment is mounted. Setting state here will trigger re-rendering.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user