Using the latest fbjs-scripts (fbjs-scripts@0.7.1) and flow-bin@0.38.0, partitionObjectByKey.js.flow throws the following Flow error:
/node_modules/fbjs/lib/partitionObjectByKey.js.flow:20
20: return partitionObject(source, (_, key) => whitelist.has(key));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tuple type. This type is incompatible with the expected return type of
19: function partitionObjectByKey(source: Object, whitelist: Set<string>): Array<Object> {
^^^^^^^^^^^^^ array type
Using the latest
fbjs-scripts(fbjs-scripts@0.7.1) andflow-bin@0.38.0,partitionObjectByKey.js.flowthrows the following Flow error: