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;