Description
Search Terms
- import
- python import
- import python
Suggestion
python like imports so that we have better suggestions for autocomplete in editors
eg: from lib import module
current implementation
import { OnInit } from "@angular/core";
this way has poor autocomplete support in editors. Editors can only show suggestions after it knows that I'm importing from "@angular/code"
suggested implementation
from "@angular/core" import { OnInit }
when this compiles to js, it stays the same
Use Cases
better autocomplete suggestions in most editors. Currently to use better autocomplete, I have to first write the name of the library and then come back to the name of the module I want to import to get autocomplete suggestions which I can select by pressing just tab
Examples
from "@angular/core" import { OnInit }
from "../myCustomLib" import { SomeItem}
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript / JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. new expression-level syntax)
Also, if you guys decide to implement this, can I get to work on this?