- Notifications
You must be signed in to change notification settings - Fork13.2k
Closed
Description
🔎 Search Terms
export alias string names
import alias string names
string alias for imports/exports
🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about string names as import/export aliases
⏯ Playground Link
💻 Code
constfoo=1;export{fooas"bar"};
🙁 Actual behavior
This fails to compile because of theas "bar" in theexport statement.
🙂 Expected behavior
This should compile and allow string name aliases.
Additional information about the issue
String name import/export aliases should be allowed by the ts compiler. They are valid javascript (see thesyntax section of the MDN page inexports).