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 toHTMLFormElement
- Added
WeakRef
class definition - Added
ariaHidden
DOM property