New Features:
- Support for
thisannotations in functions, likefunction f(this: {foo: string}, param1: string): string { return this.foo; } - The
experimental.abstract_locationsconfig option is nowtrueby 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: stringflows 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-typesto supportthisparameters - Added SpeechRecognition definitions (thanks @ayshiff)