diff --git a/react/react.d.ts b/react/react.d.ts index 020eb1fd6..c97810448 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -5,12 +5,19 @@ declare module "react" { export function createClass(specification: Specification): Factory

; + export function renderComponent(component: Descriptor, container: Element, callback?: () => void): void; + export function unmountComponentAtNode(container: Element): boolean; + export function renderComponentToString(component: Descriptor): string; + export function renderComponentToStaticMarkup(component: Descriptor): string; + export function isValidClass(factory: Factory): boolean; + export function isValidComponent(component: Descriptor): boolean; + export function initializeTouchEvents(shouldUseTouch: boolean): void; export interface Descriptor

{ @@ -47,7 +54,7 @@ declare module "react" { getDomNode(): Element; } - export interface Component extends DomReferencer{ + export interface Component extends DomReferencer { refs: { [key: string]: DomReferencer }; @@ -129,7 +136,7 @@ declare module "react" { } // Events - export interface SyntheticEvent { + export interface SyntheticEvent { bubbles: boolean; cancelable: boolean; currentTarget: EventTarget; @@ -386,9 +393,11 @@ declare module "react" { y?: any; } - interface DomElement extends Factory {} + interface DomElement extends Factory { + } - interface SvgElement extends Factory {} + interface SvgElement extends Factory { + } export var DOM: { // HTML