github facebook/flow v0.207.0

latest releases: v0.235.1, v0.234.0, v0.233.0...
11 months ago

Likely to cause new Flow errors:

  • When you pass a generic component type to some React utility type like React.ElementConfig<typeof some_generic_component>, we will replace all the type parameters with their defaults or bounds. It can potentially cause downstream errors. (Example)

New Features:

  • Add built-in (intrisic) element names like div to JSX autocomplete
  • Mapped types now support operating directly over keys, like TypeScript's Pick and Omit (Example). Mapped type support is still experimental; enable experimental.mapped_type=true to try them.

Notable bug fixes:

  • Don't check @noflow files in "all" mode
  • Fixed a source of spurious errors when using refined string keys as computed properties in objects (Example)
  • Improved Go to Definition on export statements

Library Definitions:

  • Added rel as an attribute to HTMLFormElement
  • Added WeakRef class definition
  • Added ariaHidden DOM property

Don't miss a new flow release

NewReleases is sending notifications on new releases.