diff --git a/react/index.d.ts b/react/index.d.ts index dd2add0e0e..befc47431e 100644 --- a/react/index.d.ts +++ b/react/index.d.ts @@ -108,7 +108,7 @@ declare namespace React { type: ClassType
, ClassicComponentClass
>): CFactory
>; function createFactory
, C extends ComponentClass
>( type: ClassType
): CFactory
; - function createFactory
(type: ComponentClass
| SFC
): Factory
; + function createFactory
(type: ComponentClass
): Factory
; function createElement
, T extends Element>(
type: string,
@@ -127,7 +127,7 @@ declare namespace React {
props?: P & ClassAttributes ;
function createElement (
- type: ComponentClass | SFC ,
+ type: ComponentClass ,
props?: P & Attributes,
...children: ReactNode[]): ReactElement ;