Adding createElement

This is based off the work of @jnetterf in
https://github.com/Asana/typed-react/pull/24/files#diff-4
This commit is contained in:
Phips Peter
2014-10-22 17:11:22 -07:00
parent bd9a1922e4
commit 10a78d4323
+6
View File
@@ -12,6 +12,12 @@ declare module React {
export function createFactory<P>(clazz: ReactComponentFactory<P>): ReactComponentFactory<P>;
export function createElement<P>(clazz: ReactComponentFactory<P>, props: P, ...children: any[]): ReactComponentElement<P>;
export function createElement(type: string, props: DomAttributes, ...children: any[]): ReactHTMLElement;
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(component: ReactHTMLElement, container: Element, callback?: () => void): ReactHTMLElement;