New Features:
- Support for
this
annotations in functions, likefunction f(this: {foo: string}, param1: string): string { return this.foo; }
- The
experimental.abstract_locations
config option is nowtrue
by default, as it enables significant performance improvements. This option is now deprecated and will be removed in a coming version.
Notable bug fixes:
- Fixed a false positive when a bounded generic like
K: string
flows into$Keys<{[K]: ...}>
- Fixed a false positive when a bounded generic like
K: 'literal'
is checked against itself likek === 'literal'
- Fixed autocomplete inside of JSX attribute values
- Fixed autocomplete of properties of interfaces
Misc:
- Updated
flow-remove-types
to supportthis
parameters - Added SpeechRecognition definitions (thanks @ayshiff)