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;