github facebook/flow v0.227.0

latest releases: v0.252.0, v0.251.1, v0.251.0...
9 months ago

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 as empty, instead of any. (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).

Don't miss a new flow release

NewReleases is sending notifications on new releases.