From b037ef15f334efb5da0b5d51e2eb85e3fc199bda Mon Sep 17 00:00:00 2001 From: Frank Li Date: Tue, 7 Aug 2018 16:59:25 -0700 Subject: [PATCH] Made `ComponentState` type to point to `any` --- types/react/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 40198d1a16..e6b6c2dbc9 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -61,7 +61,7 @@ declare namespace React { type Ref = string | { bivarianceHack(instance: T | null): any }["bivarianceHack"] | RefObject; // tslint:disable-next-line:interface-over-type-literal - type ComponentState = {}; + type ComponentState = any; interface Attributes { key?: Key; @@ -356,7 +356,7 @@ declare namespace React { displayName?: string; } - interface ComponentClass

extends StaticLifecycle { + interface ComponentClass

extends StaticLifecycle { new (props: P, context?: any): Component; propTypes?: ValidationMap

; contextTypes?: ValidationMap;