Merge pull request #3111 from hraban/patch-1

React.render() return value incorrect
This commit is contained in:
Masahiro Wakame
2014-11-29 13:55:19 +09:00

4
react/react.d.ts vendored
View File

@@ -18,7 +18,7 @@ declare module React {
export function createElement(type: string, props: SvgAttributes, ...children: any[]): ReactSVGElement;
export function render<P>(component: ReactComponentElement<P>, container: Element, callback?: () => void): ReactComponentElement<P>;
export function render<P>(component: ReactComponentElement<P>, container: Element, callback?: () => void): Component<P, void>;
export function render(component: ReactHTMLElement, container: Element, callback?: () => void): ReactHTMLElement;
@@ -609,4 +609,4 @@ declare module React {
text: SvgElement;
tspan: SvgElement;
};
}
}