From 596ab8e1eefd8b9979544373514525cf2e9940e3 Mon Sep 17 00:00:00 2001 From: Phips Peter Date: Fri, 3 Oct 2014 10:25:49 -0700 Subject: [PATCH] Fixing renderComponent It should return a descriptor, not be void. --- 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 507a18f39..b6c0f4989 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -10,7 +10,7 @@ declare module "react" { declare module React { export function createClass(specification: Specification): Factory

; - export function renderComponent(component: Descriptor, container: Element, callback?: () => void): void; + export function renderComponent

(component: Descriptor

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

; export function unmountComponentAtNode(container: Element): boolean;