When autocompleting on objects, flow will show all possible options in alphabetical ordering.
Most of the times users are interested in the properties they defined on the object and not ALL existing properties. It would be useful to sort these to reflect this.
For example, considering the following object:
type Action = {type: string, payload: any}
If I autocomplete on this I probably want type or payload, but flow will present me with hasOwnProperty, isPrototypeOf, etc.. and type will be one of the last available options (sorted alphabetically).
When autocompleting on objects, flow will show all possible options in alphabetical ordering.
Most of the times users are interested in the properties they defined on the object and not ALL existing properties. It would be useful to sort these to reflect this.
For example, considering the following object:
If I autocomplete on this I probably want
type
orpayload
, but flow will present me withhasOwnProperty
,isPrototypeOf
, etc.. andtype
will be one of the last available options (sorted alphabetically).