Adding createFactory

Forgot about this piece but is important for removing warnings.
This commit is contained in:
Phips Peter 2014-10-17 16:42:11 -07:00
parent 3bb83a20e4
commit 17d211f896

2
react/react.d.ts vendored
View File

@ -10,6 +10,8 @@ export = React;
declare module React {
export function createClass<P, S>(specification: Specification<P, S>): ReactComponentFactory<P>;
export function createFactory<P>(clazz: ReactComponentFactory<P>): ReactComponentFactory<P>;
export function render<P>(component: ReactComponentElement<P>, container: Element, callback?: () => void): ReactComponentElement<P>;
export function render(component: ReactHTMLElement, container: Element, callback?: () => void): ReactHTMLElement;