You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DefinitelyTyped largely incompatible with ES6 emit due to export syntax #2929
But when I want to emit ES6, the compiler tells me I need to update that definition file to the new export default syntax. That might be fine for .d.ts files I own, but it's not reasonable to expect all of DefinitelyTyped to be updated by contributors.
I think one of these would be a good fix, in order:
Make a commit across all of DefinitelyTyped to update export = to export default. (assuming there is no legacy config where export default doesn't work.)
Allow export = syntax all the time, emit the right thing anyway
This is definitely something we've talked about a bunch in relation to the ES6 module changes. In an ideal world we don't break what exists but also help pull people forward to ES6 style modules asap.
This is definitely something we've talked about a bunch in relation to the
ES6 module changes. In an ideal world we don't break what exists but also
help pull people forward to ES6 style modules asap.
—
Reply to this email directly or view it on GitHub #2929 (comment)
.
Activity
danquirk commentedon Apr 27, 2015
This is definitely something we've talked about a bunch in relation to the ES6 module changes. In an ideal world we don't break what exists but also help pull people forward to ES6 style modules asap.
alexeagle commentedon Apr 27, 2015
For now I think my only choice is to fork DefinitelyTyped and fix this in
all the typings I use.
On Mon, Apr 27, 2015 at 11:13 AM Dan Quirk [email protected] wrote:
mhegazy commentedon Apr 27, 2015
The restriction in the compiler is not needed for ambient modules. we should remove it.
Fix #2929: relax the check for export= in ES6 if it is resulting from…
mhegazy commentedon Apr 27, 2015
handled in #2935
lazdmx commentedon Apr 28, 2015
👍
ivogabe commentedon Apr 28, 2015
Mohamed Hegazy (@mhegazy) I think you meant #2935, since #2929 is this issue..
mhegazy commentedon Apr 28, 2015
Ivo Gabe de Wolff (@ivogabe) yes, you are correct. updating the comment. thanks!
Merge pull request #2935 from Microsoft/relaxExportEqualsCheck