diff --git a/react/react.d.ts b/react/react.d.ts index f7e5f5387c..03d11a8a9a 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -18,7 +18,7 @@ declare module React { export function createElement(type: string, props: SvgAttributes, ...children: any[]): ReactSVGElement; - export function render
(component: ReactComponentElement
, container: Element, callback?: () => void): ReactComponentElement
; + export function render
(component: ReactComponentElement
, container: Element, callback?: () => void): Component
; export function render(component: ReactHTMLElement, container: Element, callback?: () => void): ReactHTMLElement; @@ -609,4 +609,4 @@ declare module React { text: SvgElement; tspan: SvgElement; }; -} \ No newline at end of file +}