flow
flow copied to clipboard
Improve autocomplete according to Node.js docs
Hello,
my suggestion is to improve autocomplete according to Node.js docs, because sometimes it lacks of autocomplete in some places, for e.g.
const dgram = require('dgram');
const server = dgram.createSocket('udp4'); // There's no autocomplete for udp4 and udp6
This is not only this place, there are more.
Flow would first need to support this type of autocomplete (it currently does not). Then if string literals or object properties are typed properly, you'd get the autocomplete of interest.
See: https://github.com/facebook/flow/issues/3074.