microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.1.2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

ReactTypings/react/react-dom.d.ts

66lines · modeblame

d24fea86Joshua Skelton10 years ago1// 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
8declare namespace __React {
9namespace __DOM {
10function findDOMNode<E extends Element>(instance: ReactInstance): E;
11function findDOMNode(instance: ReactInstance): Element;
12
13function render<P>(
14element: DOMElement<P>,
15container: Element,
16callback?: (element: Element) => any): Element;
17function render<P, S>(
18element: ClassicElement<P>,
19container: Element,
20callback?: (component: ClassicComponent<P, S>) => any): ClassicComponent<P, S>;
21function render<P, S>(
22element: ReactElement<P>,
23container: Element,
24callback?: (component: Component<P, S>) => any): Component<P, S>;
25
26function unmountComponentAtNode(container: Element): boolean;
27
28var version: string;
29
30function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void;
31function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void;
32function unstable_batchedUpdates(callback: () => any): void;
33
34function unstable_renderSubtreeIntoContainer<P>(
35parentComponent: Component<any, any>,
36nextElement: DOMElement<P>,
37container: Element,
38callback?: (element: Element) => any): Element;
39function unstable_renderSubtreeIntoContainer<P, S>(
40parentComponent: Component<any, any>,
41nextElement: ClassicElement<P>,
42container: Element,
43callback?: (component: ClassicComponent<P, S>) => any): ClassicComponent<P, S>;
44function unstable_renderSubtreeIntoContainer<P, S>(
45parentComponent: Component<any, any>,
46nextElement: ReactElement<P>,
47container: Element,
48callback?: (component: Component<P, S>) => any): Component<P, S>;
49}
50
51namespace __DOMServer {
52function renderToString(element: ReactElement<any>): string;
53function renderToStaticMarkup(element: ReactElement<any>): string;
54var version: string;
55}
56}
57
58declare module "react-dom" {
59import DOM = __React.__DOM;
60export = DOM;
61}
62
63declare module "react-dom/server" {
64import DOMServer = __React.__DOMServer;
65export = DOMServer;
66}