Flow 0.34 (#8259)
Ben Alpert committed
Nov 10, 2016 at 11:52 UTC
67dcc5861ca5532219b81d127d2a6463287041a8
4 files changed
+6
-7
.flowconfig
+1
-1
@@ -35,4 +35,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
35
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
36
37
[version]
38
-^0.33.0
38
+^0.34.0
package.json
+1
-1
@@ -45,7 +45,7 @@
45
"eslint-plugin-react-internal": "file:eslint-rules",
46
"fbjs": "^0.8.5",
47
"fbjs-scripts": "^0.6.0",
48
- "flow-bin": "^0.33.0",
48
+ "flow-bin": "^0.34.0",
49
"glob": "^6.0.1",
50
"grunt": "^0.4.5",
51
"grunt-cli": "^0.1.13",
src/renderers/native/ReactNativeAttributePayload.js
+3
-4
@@ -396,18 +396,17 @@ function diffProperties(
396
removedKeyCount = 0;
397
// We think that attributeConfig is not CustomAttributeConfiguration at
398
// this point so we assume it must be AttributeConfiguration.
399
- // $FlowFixMe
399
updatePayload = diffNestedProperty(
400
updatePayload,
401
prevProp,
402
nextProp,
404
- attributeConfig
403
+ ((attributeConfig : any) : AttributeConfiguration)
404
);
405
if (removedKeyCount > 0 && updatePayload) {
406
restoreDeletedValuesInNestedArray(
407
updatePayload,
408
nextProp,
410
- attributeConfig
409
+ ((attributeConfig : any) : AttributeConfiguration)
410
);
411
removedKeys = null;
412
}
@@ -457,7 +456,7 @@ function diffProperties(
456
updatePayload = clearNestedProperty(
457
updatePayload,
458
prevProp,
460
- attributeConfig
459
+ ((attributeConfig : any) : AttributeConfiguration)
460
);
461
}
462
}
src/renderers/shared/fiber/ReactFiber.js
+1
-1
@@ -308,7 +308,7 @@ function createFiberFromElementType(type : mixed, key : null | string) : Fiber {
308
// the current or a workInProgress? When the continuation gets rendered here
309
// we don't know if we can reuse that fiber or if we need to clone it.
310
// There is probably a clever way to restructure this.
311
- fiber = type;
311
+ fiber = ((type : any) : Fiber);
312
} else {
313
throw new Error('Unknown component type: ' + typeof type);
314
}