mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Fix flow (#7499)
ReactElement requires a generic argument now and the return function of render is a ReactTestInstance and not a ReactElement.
(cherry picked from commit 9a48b5ca7b)
This commit is contained in:
1 parent
814be45aa8
commit
df4356133d
1 file changed
+2
-2
@@ -137,8 +137,8 @@ ReactTestInstance.prototype.toJSON = function() {
|
||||
var ReactTestMount = {
|
||||
|
||||
render: function(
|
||||
nextElement: ReactElement
|
||||
): ?ReactElement<any, any, any> {
|
||||
nextElement: ReactElement<any>
|
||||
): ReactTestInstance {
|
||||
var nextWrappedElement = new ReactElement(
|
||||
TopLevelWrapper,
|
||||
null,
|
||||
|
||||
Reference in new issue
Block a user