A proposal for JavaScript to support inverted import * from *
syntax as from * import *
, so that autocompletion in editors works better since they will be able to suggest names of exported identifiers in the targeted module, which would now be known upfront.
from 'my-module' import MyModule, { AnotherMethod }
from 'other-module' import { OtherMethod }
// ...
or:
import from 'my-module' MyModule, { AnotherMethod }
import from 'other-module' { OtherMethod }
// ...
or:
import from 'my-module' as MyModule, { AnotherMethod }
import from 'other-module' as { OtherMethod }
// ...
An editor could allow autocompletion after only:
from 'my-module' import { ...
or:
from 'my-module' import { O...