mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 12:33:17 +08:00
Merge pull request #3111 from hraban/patch-1
React.render() return value incorrect
This commit is contained in:
4
react/react.d.ts
vendored
4
react/react.d.ts
vendored
@@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user