change default type value of ComponentLifecycle snapshot to any

This commit is contained in:
Tom Fletcher
2018-05-24 17:07:54 +01:00
parent 0e7c267406
commit de36724537
+1 -1
View File
@@ -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.
*/