/* @flow */
'use strict'
// property `bar` of object literal. Property not found in object literal
module.exports = exports = Object.assign({foo: true}, {bar: false})
// OR
// property `foo` of object literal. Property not found in object literal
module.exports = exports = Object.assign({}, {foo: true}, {bar: false})
+1, flow gives a hard time with Object.assign
Your first error is predicted by object sealing @despairblue -- see https://also.github.io/notes/2016/03/13/flow-object-assign.html, but I might expect the second one to work since the target is unsealed.
The second example appears to work without any warnings / errors in FlowType 0.36.
This should work in the latest version of Flow. If you are still having issues let us know 馃憤
Most helpful comment
Your first error is predicted by object sealing @despairblue -- see https://also.github.io/notes/2016/03/13/flow-object-assign.html, but I might expect the second one to work since the target is unsealed.