Likely to cause new Flow errors:
- Fixed subtyping of inline interfaces, e.g. try-flow.
New Features:
- No longer trigger
method-unbindingerrors with indexed access types. - Add
relay_integration.esmodulesoption. When this option, along withrelay_integration, is enabled, Flow will treatgraphqlfragments/queries/etc. asimport defaultrather thanrequire. Use this when you ouput ESM from Relay's codegen (e.g.eagerEsModules).
Notable bug fixes:
- Don't error when returning an array, map, etc when an
AsyncGenerator<T, void, void>type is expected (e.g. try-Flow)
IDE:
- Fixed a bug where
AUTO332appeared in the result of string literal type completion.
Library Definitions:
- Added definitions for
FileSystemAPIs (thanks @ZelJin). - Added constructor to the
StorageManagerclass (thanks @ZelJin). - Removed
checkPropTypes,DOM,createClass,ConcurrentModefromreactmodule. - Types in react module can now also be used when React is default imported like
import React from 'react', they can also be used without imports, e.g.type N = React.Node.