Merge pull request #1 from anton-fomin/react-dom-fix

Update react-dom.d.ts
This commit is contained in:
Anton Fomin
2015-10-10 09:26:57 +02:00
+13 -13
View File
@@ -5,36 +5,36 @@
/// <reference path="./../react/react.d.ts" />
declare class __ReactDom {
public render<P>(
declare namespace __ReactDom {
function render<P>(
element: __React.DOMElement<P>,
container: Element,
callback?: () => any): __React.DOMComponent<P>;
public render<P, S>(
function render<P, S>(
element: __React.ClassicElement<P>,
container: Element,
callback?: () => any): __React.ClassicComponent<P, S>;
public render<P, S>(
function render<P, S>(
element: __React.ReactElement<P>,
container: Element,
callback?: () => any): __React.Component<P, S>;
public findDOMNode<TElement extends Element>(
function findDOMNode<TElement extends Element>(
componentOrElement: __React.Component<any, any> | Element): TElement;
public findDOMNode(
function findDOMNode(
componentOrElement: __React.Component<any, any> | Element): Element;
public unmountComponentAtNode(container: Element): boolean;
function unmountComponentAtNode(container: Element): boolean;
}
declare class __ReactDomServer {
public renderToString(element: __React.ReactElement<any>): string;
public renderToStaticMarkup(element: __React.ReactElement<any>): string;
declare namespace __ReactDomServer {
function renderToString(element: __React.ReactElement<any>): string;
function renderToStaticMarkup(element: __React.ReactElement<any>): string;
}
declare module "react-dom" {
export = __ReactDom
export = __ReactDom
}
declare module "react-dom/server" {
export = __ReactDomServer
}
export = __ReactDomServer
}