We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"string name"
export alias string names import alias string names string alias for imports/exports
https://www.typescriptlang.org/play?module=1&ssl=3&ssc=17&pln=3&pc=20#code/MYewdgzgLgBAZiEMC8MCMBuAUFgpgDwAcQAnWAbwSQEMIYAiAI2pPoF9sg
const foo = 1; export {foo as "bar"};
This fails to compile because of the as "bar" in the export statement.
as "bar"
export
This should compile and allow string name aliases.
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).
exports
The text was updated successfully, but these errors were encountered:
jco
Duplicate of #40594
Sorry, something went wrong.
PR to implement support for this is here #49297 but seems to be stalled.
Ahh thank you for the pointer! Closing in favor of the existing issue.
Successfully merging a pull request may close this issue.
🔎 Search Terms
export alias string names
import alias string names
string alias for imports/exports
🕗 Version & Regression Information
⏯ Playground Link
https://www.typescriptlang.org/play?module=1&ssl=3&ssc=17&pln=3&pc=20#code/MYewdgzgLgBAZiEMC8MCMBuAUFgpgDwAcQAnWAbwSQEMIYAiAI2pPoF9sg
💻 Code
🙁 Actual behavior
This fails to compile because of the
as "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 the syntax section of the MDN page in
exports
).The text was updated successfully, but these errors were encountered: