From ebb16b2d2dc68178d68e33b341044646f62dfc6c Mon Sep 17 00:00:00 2001 From: Frank Li Date: Mon, 6 Aug 2018 15:13:23 -0700 Subject: [PATCH] Pass any as the state type to ComponentClass Pass any as the state type to ComponentClass from ComponentType. --- types/react/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 2c7110237c..1a63b221bf 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -18,6 +18,7 @@ // Johann Rakotoharisoa // Olivier Pascal // Martin Hochel +// Frank Li // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -49,7 +50,7 @@ declare namespace React { // ---------------------------------------------------------------------- type ReactType

= string | ComponentType

; - type ComponentType

= ComponentClass

| StatelessComponent

; + type ComponentType

= ComponentClass | StatelessComponent

; type Key = string | number;