mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
Change React.createFactory to take React.ComponentClass<P>
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user