From 17d211f89653ba84adc2c85fa0caa009fdbdfbd5 Mon Sep 17 00:00:00 2001 From: Phips Peter Date: Fri, 17 Oct 2014 16:42:11 -0700 Subject: [PATCH] Adding createFactory Forgot about this piece but is important for removing warnings. --- react/react.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/react/react.d.ts b/react/react.d.ts index 1383a33f02..05f763a9f1 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -10,6 +10,8 @@ export = React; declare module React { export function createClass(specification: Specification): ReactComponentFactory

; + export function createFactory

(clazz: ReactComponentFactory

): ReactComponentFactory

; + export function render

(component: ReactComponentElement

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

; export function render(component: ReactHTMLElement, container: Element, callback?: () => void): ReactHTMLElement;