From de36724537fb493b5632a1f04fada67bba1bccb0 Mon Sep 17 00:00:00 2001 From: Tom Fletcher Date: Thu, 24 May 2018 17:07:54 +0100 Subject: [PATCH] change default type value of ComponentLifecycle snapshot to any --- types/react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index ce80b41c35..b7a40110e9 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -369,7 +369,7 @@ declare namespace React { // This should actually be something like `Lifecycle | DeprecatedLifecycle`, // as React will _not_ call the deprecated lifecycle methods if any of the new lifecycle // methods are present. - interface ComponentLifecycle extends NewLifecycle, DeprecatedLifecycle { + interface ComponentLifecycle extends NewLifecycle, DeprecatedLifecycle { /** * Called immediately after a compoment is mounted. Setting state here will trigger re-rendering. */