diff --git a/react/react.d.ts b/react/react.d.ts index 2d6696066..40522920f 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -12,6 +12,12 @@ declare module React { export function createFactory

(clazz: ReactComponentFactory

): ReactComponentFactory

; + export function createElement

(clazz: ReactComponentFactory

, props: P, ...children: any[]): ReactComponentElement

; + + export function createElement(type: string, props: DomAttributes, ...children: any[]): ReactHTMLElement; + + export function createElement(type: string, props: SvgAttributes, ...children: any[]): ReactSVGElement; + export function render

(component: ReactComponentElement

, container: Element, callback?: () => void): ReactComponentElement

; export function render(component: ReactHTMLElement, container: Element, callback?: () => void): ReactHTMLElement;