microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
ReactTypings/react/react-dom.d.ts
66lines · modecode
| 1 | // Type definitions for React v0.14 (react-dom) |
| 2 | // Project: http://facebook.github.io/react/ |
| 3 | // Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> |
| 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped |
| 5 | |
| 6 | /// <reference path="react.d.ts" /> |
| 7 | |
| 8 | declare namespace __React { |
| 9 | namespace __DOM { |
| 10 | function findDOMNode<E extends Element>(instance: ReactInstance): E; |
| 11 | function findDOMNode(instance: ReactInstance): Element; |
| 12 | |
| 13 | function render<P>( |
| 14 | element: DOMElement<P>, |
| 15 | container: Element, |
| 16 | callback?: (element: Element) => any): Element; |
| 17 | function render<P, S>( |
| 18 | element: ClassicElement<P>, |
| 19 | container: Element, |
| 20 | callback?: (component: ClassicComponent<P, S>) => any): ClassicComponent<P, S>; |
| 21 | function render<P, S>( |
| 22 | element: ReactElement<P>, |
| 23 | container: Element, |
| 24 | callback?: (component: Component<P, S>) => any): Component<P, S>; |
| 25 | |
| 26 | function unmountComponentAtNode(container: Element): boolean; |
| 27 | |
| 28 | var version: string; |
| 29 | |
| 30 | function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void; |
| 31 | function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void; |
| 32 | function unstable_batchedUpdates(callback: () => any): void; |
| 33 | |
| 34 | function unstable_renderSubtreeIntoContainer<P>( |
| 35 | parentComponent: Component<any, any>, |
| 36 | nextElement: DOMElement<P>, |
| 37 | container: Element, |
| 38 | callback?: (element: Element) => any): Element; |
| 39 | function unstable_renderSubtreeIntoContainer<P, S>( |
| 40 | parentComponent: Component<any, any>, |
| 41 | nextElement: ClassicElement<P>, |
| 42 | container: Element, |
| 43 | callback?: (component: ClassicComponent<P, S>) => any): ClassicComponent<P, S>; |
| 44 | function unstable_renderSubtreeIntoContainer<P, S>( |
| 45 | parentComponent: Component<any, any>, |
| 46 | nextElement: ReactElement<P>, |
| 47 | container: Element, |
| 48 | callback?: (component: Component<P, S>) => any): Component<P, S>; |
| 49 | } |
| 50 | |
| 51 | namespace __DOMServer { |
| 52 | function renderToString(element: ReactElement<any>): string; |
| 53 | function renderToStaticMarkup(element: ReactElement<any>): string; |
| 54 | var version: string; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | declare module "react-dom" { |
| 59 | import DOM = __React.__DOM; |
| 60 | export = DOM; |
| 61 | } |
| 62 | |
| 63 | declare module "react-dom/server" { |
| 64 | import DOMServer = __React.__DOMServer; |
| 65 | export = DOMServer; |
| 66 | } |
| 67 | |