mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix flow (#7499)
ReactElement requires a generic argument now and the return function of render is a ReactTestInstance and not a ReactElement.
This commit is contained in:
committed by
Dan Abramov
parent
48475787b4
commit
9a48b5ca7b
@@ -132,8 +132,8 @@ ReactTestInstance.prototype.toJSON = function() {
|
||||
var ReactTestMount = {
|
||||
|
||||
render: function(
|
||||
nextElement: ReactElement
|
||||
): ?ReactElement<any, any, any> {
|
||||
nextElement: ReactElement<any>
|
||||
): ReactTestInstance {
|
||||
var nextWrappedElement = React.createElement(
|
||||
TopLevelWrapper,
|
||||
{ child: nextElement }
|
||||
|
||||
Reference in New Issue
Block a user