From a9f307e5d3db338117df8834ffa0cc4b35418adc Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Thu, 10 Nov 2016 11:01:36 -0800 Subject: [PATCH] Flow 0.34 --- .flowconfig | 2 +- package.json | 2 +- src/renderers/native/ReactNativeAttributePayload.js | 7 +++---- src/renderers/shared/fiber/ReactFiber.js | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.flowconfig b/.flowconfig index 689934fc46f5..27d71f39c6ed 100644 --- a/.flowconfig +++ b/.flowconfig @@ -35,4 +35,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError [version] -^0.33.0 +^0.34.0 diff --git a/package.json b/package.json index 2c90d899f700..76b0861cff9e 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "eslint-plugin-react-internal": "file:eslint-rules", "fbjs": "^0.8.5", "fbjs-scripts": "^0.6.0", - "flow-bin": "^0.33.0", + "flow-bin": "^0.34.0", "glob": "^6.0.1", "grunt": "^0.4.5", "grunt-cli": "^0.1.13", diff --git a/src/renderers/native/ReactNativeAttributePayload.js b/src/renderers/native/ReactNativeAttributePayload.js index 8882f1131d56..6c6e4f9da20f 100644 --- a/src/renderers/native/ReactNativeAttributePayload.js +++ b/src/renderers/native/ReactNativeAttributePayload.js @@ -396,18 +396,17 @@ function diffProperties( removedKeyCount = 0; // We think that attributeConfig is not CustomAttributeConfiguration at // this point so we assume it must be AttributeConfiguration. - // $FlowFixMe updatePayload = diffNestedProperty( updatePayload, prevProp, nextProp, - attributeConfig + ((attributeConfig : any) : AttributeConfiguration) ); if (removedKeyCount > 0 && updatePayload) { restoreDeletedValuesInNestedArray( updatePayload, nextProp, - attributeConfig + ((attributeConfig : any) : AttributeConfiguration) ); removedKeys = null; } @@ -457,7 +456,7 @@ function diffProperties( updatePayload = clearNestedProperty( updatePayload, prevProp, - attributeConfig + ((attributeConfig : any) : AttributeConfiguration) ); } } diff --git a/src/renderers/shared/fiber/ReactFiber.js b/src/renderers/shared/fiber/ReactFiber.js index 739f6636607f..a9a39716a2b6 100644 --- a/src/renderers/shared/fiber/ReactFiber.js +++ b/src/renderers/shared/fiber/ReactFiber.js @@ -308,7 +308,7 @@ function createFiberFromElementType(type : mixed, key : null | string) : Fiber { // the current or a workInProgress? When the continuation gets rendered here // we don't know if we can reuse that fiber or if we need to clone it. // There is probably a clever way to restructure this. - fiber = type; + fiber = ((type : any) : Fiber); } else { throw new Error('Unknown component type: ' + typeof type); }