mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-23 11:42:36 +08:00
Change React.createFactory to take React.ComponentClass<P>
This commit is contained in:
1 parent
db0333df59
commit
01cfe48a46
1 file changed
+1
-1
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