From 322ed3c618a2fe17d2bc65154ec3c707fdb75474 Mon Sep 17 00:00:00 2001 From: Eric Pabst Date: Fri, 28 Oct 2016 15:55:46 -0600 Subject: [PATCH] Dedup createElement and createFactory overloads in react/index.d.ts. This is causing issues for ts2kt where it results in duplicate Kotlin methods. --- react/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ...children: ReactNode[]): CElement; function createElement

( - type: ComponentClass

| SFC

, + type: ComponentClass

, props?: P & Attributes, ...children: ReactNode[]): ReactElement

;