Change React.createFactory to take React.ComponentClass<P>

This commit is contained in:
Vincent Siao
2014-12-02 19:43:17 -08:00
parent db0333df59
commit 01cfe48a46
+1 -1
View File
@@ -93,7 +93,7 @@ declare module React {
interface TopLevelAPI {
createClass<P>(spec: ComponentSpec<P, any>): ComponentClass<P>;
createElement<P>(type: any/*ReactType*/, props: P, ...children: any/*ReactNode*/[]): ReactElement<P>;
createFactory<P>(type: any/*ReactType*/): Factory<P>;
createFactory<P>(componentClass: ComponentClass<P>): Factory<P>;
render<P>(element: ReactElement<P>, container: Element, callback?: () => void): ElementInstance<P>;
unmountComponentAtNode(container: Element): boolean;
renderToString(element: ReactElement<any>): string;