Likely to cause new Flow errors:
- Some errors related to empty arrays might have their error locations or codes changed.
- Flow will now interpret trivially recursive types, such as
type T = T
asempty
, instead ofany
. (e.g. try-Flow). - We now error when calling
.call()
on polymorphic functions where the return type is under-constrained (e.g. try-Flow). To fix add an annotation to the return result.
Parser:
- DeclareModule AST will no longer have a kind field
Library Definitions:
- Removed redundant cases in
Array.from
overloads. It might cause some error locations and codes to change. - Add types for the Storage API, available via
window.navigator.storage
(thanks @ZelJin).