mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-22 11:22:53 +08:00
Fixing renderComponent
It should return a descriptor, not be void.
This commit is contained in:
1 parent
4598e7d76b
commit
596ab8e1ee
1 file changed
+1
-1
Vendored
+1
-1
@@ -10,7 +10,7 @@ declare module "react" {
|
||||
declare module React {
|
||||
export function createClass<P, S>(specification: Specification<P, S>): Factory<P>;
|
||||
|
||||
export function renderComponent(component: Descriptor<any>, container: Element, callback?: () => void): void;
|
||||
export function renderComponent<P>(component: Descriptor<P>, container: Element, callback?: () => void): Descriptor<P>;
|
||||
|
||||
export function unmountComponentAtNode(container: Element): boolean;
|
||||
|
||||
|
||||
Reference in new issue
Block a user