export * as default from "module"
syntax should work as per ECMA-262
#39769
Labels
Bug
A bug in TypeScript
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
ES Next
New featurers for ECMAScript (a.k.a. ESNext)
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 4.0.0-beta
Search Terms:
ESModule, export star as default, "export * as default from"
Expected behavior:
export * as default from "module"
should export the namespace of "module" as thedefault
export.This is valid ES Module syntax from this stage-4 proposal. See the test in test-262.
I also tested this syntax in Chrome and it was supported.
Actual behavior:
You get the following errors:
Code
Output
Compiler Options
Playground Link: Provided
The text was updated successfully, but these errors were encountered: