From 01cfe48a46a3f8a7113cde9a8e62958f56beec76 Mon Sep 17 00:00:00 2001 From: Vincent Siao Date: Tue, 2 Dec 2014 19:43:17 -0800 Subject: [PATCH] Change React.createFactory to take React.ComponentClass

--- react/react.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/react.d.ts b/react/react.d.ts index 3eaa868fe..70608cf44 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -93,7 +93,7 @@ declare module React { interface TopLevelAPI { createClass

(spec: ComponentSpec): ComponentClass

; createElement

(type: any/*ReactType*/, props: P, ...children: any/*ReactNode*/[]): ReactElement

; - createFactory

(type: any/*ReactType*/): Factory

; + createFactory

(componentClass: ComponentClass

): Factory

; render

(element: ReactElement

, container: Element, callback?: () => void): ElementInstance

; unmountComponentAtNode(container: Element): boolean; renderToString(element: ReactElement): string;