-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already createdFix AvailableA PR has been opened for this issueA PR has been opened for this issue
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
const foo = 1;
export {foo as "bar"};
🙁 Actual behavior
This fails to compile because of the as "bar"
in the export
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 the syntax section of the MDN page in exports
).
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already createdFix AvailableA PR has been opened for this issueA PR has been opened for this issue