Skip to content

A proposal for JS `from * import *` syntax for better autocompletion.

License

Notifications You must be signed in to change notification settings

AndersDJohnson/rfc-js-from-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

rfc-js-from-import

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...

Related

About

A proposal for JS `from * import *` syntax for better autocompletion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published