@@ -10,10 +10,10 @@ declare namespace __React {
10
10
function findDOMNode < E extends Element > ( instance : ReactInstance ) : E ;
11
11
function findDOMNode ( instance : ReactInstance ) : Element ;
12
12
13
- function render < P > (
14
- element : DOMElement < P > ,
13
+ function render < P extends DOMAttributes , T extends Element > (
14
+ element : DOMElement < P , T > ,
15
15
container : Element ,
16
- callback ?: ( element : Element ) => any ) : Element ;
16
+ callback ?: ( element : T ) => any ) : T ;
17
17
function render < P , S > (
18
18
element : ClassicElement < P > ,
19
19
container : Element ,
@@ -31,11 +31,11 @@ declare namespace __React {
31
31
function unstable_batchedUpdates < A > ( callback : ( a : A ) => any , a : A ) : void ;
32
32
function unstable_batchedUpdates ( callback : ( ) => any ) : void ;
33
33
34
- function unstable_renderSubtreeIntoContainer < P > (
34
+ function unstable_renderSubtreeIntoContainer < P extends DOMAttributes , T extends Element > (
35
35
parentComponent : Component < any , any > ,
36
- nextElement : DOMElement < P > ,
36
+ element : DOMElement < P , T > ,
37
37
container : Element ,
38
- callback ?: ( element : Element ) => any ) : Element ;
38
+ callback ?: ( element : T ) => any ) : T ;
39
39
function unstable_renderSubtreeIntoContainer < P , S > (
40
40
parentComponent : Component < any , any > ,
41
41
nextElement : ClassicElement < P > ,
0 commit comments